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

Re: How do you find the repository revision of a tag?

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 16 Jul 2008 14:28:39 -0400

On Wed, Jul 16, 2008 at 1:47 PM, Andy Levy <andy.levy_at_gmail.com> wrote:
> To get the revision number at which the tag was created: svn log
> --stop-on-copy <TAG_URL>
>
> or
>
> To get more detailed info about the tag itself: svn info <TAG_URL>

The "svn info <TAG-URL>" doesn't contain the information I want. It
shows me the revision number that created the tag, but not the
revision number that tag was based upon. It's a subtle but important
difference.

For example, a
    $ svn info http://svn/dev/ads/tags/QA/ADS-5.3-Q-20

will show me that this tag was created on revision 12740, but if I
take a log on this:

   $ svn log --verbose --quiet --stop-on-copy
http://svn/dev/ads/tags/QA/ADS-5.3-Q-20
   r12741 | DWeintraub | 2008-07-15 16:33:12 -0400 (Tue, 15 Jul 2008)
   Changed paths:
       A ads/tags/QA/ADS-5.3-Q-20 (from ads/tags/DEV/ADS-5.3-D-139:12740)

I see this tag was copied from the development tag ADS-5.3-D-139

Doing the following to see where ADS-5.3-D-139 came from, I get:

    $ svn log --verbose --quiet --stop-on-copy
http://svn/dev/ads/tags/DEV/ADS-5.3-D-139
    ------------------------------------------------------------------------
    r12740 | DWeintraub | 2008-07-15 16:30:57 -0400 (Tue, 15 Jul 2008)
    Changed paths:
        A ads/tags/DEV/ADS-5.3-D-139 (from ads/trunk:4615)
   ------------------------------------------------------------------------

I see that ADS-5.3-D-139 was taken from revision 4615 of
http://svn/dev/ads/trunk and not revision 12741 which is which the
"svn info" command will show.

And, it took me only two "svn log" queries for me to get to that conclusion.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-16 20:28:59 CEST

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.