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

RE: feature request: svn revision alias

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Tue, 19 Feb 2008 10:38:13 -0500

>> Aside from "some people aren't used to it", I've not seen any
>> convincing disadvantages demonstrated for just using 'svn copy' to
>> create a tag, I have to admit. I'm keeping an open mind, but if
>> we're going to extend Subversion's interface, it should be because
>> of a convincing advantage.

Ok, here's one.

In our build scripts we want to tag "last good nightly build of
release stream x". So, roughly speaking, that amounts to:

        svn cp .../branches/x .../tags/last_good_nightly_x

However, that doesn't work. More precisely, it only works the first
time. If you do it a second time, you end up with "x" as a
subdirectory inside last_good_nightly_x, because the second time is't
a copy to an existing directory name rather than a nonexistent
directory name.

So we end up with this:

        svn rm .../tags/last_good_nightly_x
        svn cp .../branches/x .../tags/last_good_nightly_x

and that works.

Next problem: I want to see the history of that tag. In other words,
what are all the revs that I tagged?

The obvious answer is:

       svn log .../tags/last_good_nightly_x

but that doesn't give me the history of the tag (the sequence of revs
that were tagged with that tag); instead, it gives me the history of
the branch rev that was most recently tagged, or it just gives me the
last tag (if I say --stop-on-copy).

So I end up with:

       svn log .../tags

and filter the output for references to last_good_nightly_x. Yes,
that works. But the performance is quite bad, and it's a hassle to
program even with friendly tools like pysvn.

        paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-19 17:19:51 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.