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

Re: M7: Branches and Tags

From: Bruce Atherton <bruce_at_callenish.com>
Date: 2001-11-14 20:08:15 CET

At 04:31 PM 11/13/2001 -0600, Ben Collins-Sussman wrote:
> cd top/of/my/wc
> svn cp . http://foo.com/repos/project1/tags/milestone-6

If I understand you correctly, though, if you want to move a tag deep in
your wc, you have to do something like this:

    cd top/of/my/wc/some/really/deep/directory/path/I/am/using
    svn cp .

This doesn't compare well with CVS:

    cd top/of/my/wc/some/really/deep/directory/path/I/am/using
    cvs tag -F milestone-6

Speaking of the "-F', is the cp command going to have a similar (or
opposite) flag?

What might work would be if there were some way to set a change in some
arbitrary section of the URL. I have no idea what a sensible user interface
for this would look like, but just to give you an idea:

    cd top/of/my/wc/some/really/deep/directory/path/I/am/using
    svn cp --repos-replace trunk:tags/milestone-6 .

Still a heck of a lot of work just to tag a file, but better than above. Of
course, if I have all this wrong and tagging a file deep in a wc is easy,
just ignore the whole thing.

>Second, we have a new command: 'svn switch URL [-r rev]'

I like this very much, and not just for the use cases you give.

In the CVS world, it has not been uncommon to want to change all of the
CVS/Root files within a wc. This could be due to a server change, moving
the position of the repository in the file system, or even (given how the
pserver CVSROOT is specified) the name of the user to authenticate against.
It is common enough to want to change this that WinCVS ships with a TCL
macro to change the CVS/Root files within a wc.

Even without the authentication issue, this problem will continue to bite
people. The switch command could presumably be used to deal with a
repository move as well as the other use cases you mentioned.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:48 2006

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