DJ Delorie - Re: svn url shortcuts (original) (raw)

This is the mail archive of the gcc@gcc.gnu.orgmailing 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]

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"

DJ

Index: subversion/libsvn_subr/path.c

--- subversion/libsvn_subr/path.c (revision 17180) +++ subversion/libsvn_subr/path.c (working copy) @@ -1103,6 +1103,50 @@ }

+ +static const char * +replace_tag (const char *path, apr_pool_t *pool) +{


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