[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: I, too, miss tags.

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-24 14:40:05 CET

On Feb 24, 2006, at 14:25, Vincent Starre wrote:

> First off, you can do this:
> svn cp svn://repos/foo/trunk svn://repos/foo/tags/1.9.0
> Cheap, no local copy.
>
> however, it's understandable that you wouldnt want to type in long
> paths anyway.
> So.. I dont know if this is a good idea or not, but if we had some
> way of specifying paths as "through the repos" instead of "through
> the filesystem", we could do something similar to: [example of
> merging some "foo" changes back into trunk]
> svn merge --hypothetical-through-the-repos-switch ../tags/foo-
> sync ../branches/foo .
>
> Note the common (as far as I hear) method for doing this is setting
> up shell variables in your .profile:
> svn merge $FOO_TAGS/foo-sync $BRANCHES/foo .
>
> I think that's ugly and don't use that :)

I think it's practical. I simply set up the variable "R" for my
repository root. In my .bashrc:

export R=https://www.example.com/svn

Then I can make a tag like this:

svn cp $R/fooproject/trunk $R/fooproject/tags/1.9.0

Or by using handy dandy shell expansion:

svn cp $R/fooproject/{trunk,tags/1.9.0}

Easy as pie.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 24 14:45:26 2006

This is an archived mail posted to the Subversion Users mailing list.