> -----Original Message-----
> From: Paul Koning [mailto:Paul_Koning_at_dell.com]
> Sent: Tuesday, February 19, 2008 10:38 AM
> To: Eric.Miller_at_amd.com
> Cc: kfogel_at_red-bean.com; os_at_portfoolio.com;
users_at_subversion.tigris.org
> Subject: RE: feature request: svn revision alias
>
>
> >> 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.
The solution is to store the revision number and the path somewhere.
With those two items of data, you can easily reproduce your build and
have easy access to history.
The downside is that such information isn't "easy" to store in
subversion, unless you use properties, or check-in a file containing the
information in a separate admin dir. Which isn't that difficult to
implement, but the fact that you have to implement it yourself is
annoying. =/
>
> 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?
If you save off the svn_url+rev for each build, then you can:
svn log -r PREVIOUS_BUILD_REV:CURRENT_BUILD_REV svn_url
"Easy," and free of Evil Peg Revisions(tm) but annoying since you have
to implement it yourself.
*****
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA622
---------------------------------------------------------------------
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:55:00 CET