public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Aron Griffis <agriffis@gentoo.org>
To: gentoo-dev@robin.gentoo.org
Subject: Re: [gentoo-dev] Planet Gentoo released
Date: Fri, 11 Mar 2005 22:56:13 -0500	[thread overview]
Message-ID: <20050312035613.GC20707@time.flatmonk.org> (raw)
In-Reply-To: <200503111538.35371.vapier@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]

Vapier wrote:	[Fri Mar 11 2005, 03:38:35PM EST]
> or committing something to cvs and wishing there was a link you could pull up 
> in viewcvs to give to users when closing bugs rather than waiting around for 
> 30+ minutes for the changes to appear in viewcvs

$ vc keychain*
http://www.gentoo.org/cgi-bin/viewcvs.cgi/net-misc/keychain/keychain-2.5.1.ebuild?rev=1.3&content-type=text/vnd.viewcvs-markup
http://www.gentoo.org/cgi-bin/viewcvs.cgi/net-misc/keychain/keychain-2.5.1.ebuild?r1=1.2&r2=1.3
http://www.gentoo.org/cgi-bin/viewcvs.cgi/net-misc/keychain/keychain-2.5.3.1.ebuild?rev=1.1&content-type=text/vnd.viewcvs-markup

# vc: generate viewcvs urls from the current directory
vc() {
  declare f rev cwd orevn
  declare -a orev
  [[ -n $* ]] || set -- *

  cwd=${PWD#*/portage}
  cwd=${cwd#*/gentoo-x86}
  cwd=${cwd#/}

  for f in "$@"; do
    [[ -f "$f" ]] || continue
    rev=$(egrep -m1 -o '\$(Header|Id):[^$]*\$' "$f")
    [[ -n $rev ]] && rev=$(echo "$rev" | cut -d' ' -f3)
    [[ -n $rev ]] || rev=$(cvs log "$f" 2>/dev/null | awk '/^head:/{print $2}')
    [[ -n $rev ]] || continue   # oh well

    printf "%s/%s/%s?rev=%s&content-type=text/vnd.viewcvs-markup\n" \
      "http://www.gentoo.org/cgi-bin/viewcvs.cgi" "$cwd" "$f" "$rev"

    if [[ $rev != *.1 ]]; then
      orev=( $(sed 's/\(.*\.\)\(.*\)/\1 \2/g' <<<"$rev") )
      (( orev[1]-- ))
      printf "%s/%s/%s?r1=%s&r2=%s\n" "http://www.gentoo.org/cgi-bin/viewcvs.cgi" \
        "$cwd" "$f" "${orev[0]}${orev[1]}" "$rev"
    fi
  done
}

--
Aron Griffis
Gentoo Linux Developer


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-03-12  3:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10 15:33 [gentoo-dev] Planet Gentoo released Daniel Drake
2005-03-10 16:26 ` LostSon
2005-03-10 16:37   ` Chris Gianelloni
2005-03-10 16:38   ` Daniel Drake
2005-03-10 16:43 ` Thomas de Grenier de Latour
2005-03-10 16:48   ` Peter Johanson
2005-03-10 19:48 ` Donnie Berkholz
2005-03-10 20:14   ` Lance Albertson
2005-03-11  3:28     ` Donnie Berkholz
2005-03-11  3:56       ` A. Khattri
2005-03-11  5:58         ` Donnie Berkholz
2005-03-11  9:51           ` Michael Cummings
2005-03-11  9:51             ` Michael Cummings
2005-03-11 19:55             ` Donnie Berkholz
2005-03-11 20:38               ` Mike Frysinger
2005-03-12  3:56                 ` Aron Griffis [this message]
2005-03-11 20:42               ` Hasan Khalil
2005-03-11  3:57       ` Hasan Khalil
2005-03-11 10:27       ` Daniel Drake
2005-03-11 11:39         ` Robin H. Johnson
2005-03-11 12:19           ` Daniel Drake
2005-03-11 17:07         ` Rob Cakebread
2005-03-11 13:13   ` Ciaran McCreesh
2005-03-11  0:18 ` marduk
2005-03-12 17:17 ` Wolfram Schlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050312035613.GC20707@time.flatmonk.org \
    --to=agriffis@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    --cc=gentoo-dev@robin.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox