This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: svn url shortcuts


On 2005-11-03 18:43:56 -0500, DJ Delorie wrote:
> This is crude, but it lets you use "tag:foo/bar/grill"
> as a repository, and it replaces the "tag:foo" with a matching
> entry in ~/.svnrc like this:
> 
> tag foo svn://gcc.gnu.org/svn/gcc/trunk/whatever
> 
> So, with a .svnrc like this:
> 
> tag trunk svn://gcc.gnu.org/svn/gcc/trunk
> tag 4.0 svn://gcc.gnu.org/svn/gcc/branches/gcc-4_0-branch
> 
> You could just "svn co tag:4.0/gcc/config/i386"
> 
> It probably screams for lots more prettying up, but at least I did
> something about it ;-)
> 
> If you want it shorter, I could rewrite this so that the tag name goes
> before the colon, like "4.0:gcc/config/i386"

This would be better, but then, you should say "prefix" instead of
"tag" (which could be mixed up with tags), and the colon should be
part of the prefix, e.g. in your ~/.subversion/config file:

prefix 4.0: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_0-branch/

(note the trailing slash). So, users could use other prefixes if
they wish, not necessarily with a colon.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]