SVN find revision of tag

Is there any way of showing which revision is equivalent to a certain tag?

  • How to list SVN tags and its revisions from command line
  • Is there any way to svn diff or svn merge across multiple non-sequential revisions at once?
  • Is there a way to check out a single file from a master that's behind on many Git commits?
  • Build Version vs Revision number
  • Redmine: see associated revisions for git branch?
  • SVN merge trunk into branch deleting files
  • Fork remote SVN repo to git
  • How to wean myself from FTP in favor of Version Control
  • svn merge with --reintegrate complains about missing ranges but mergeinfo seems correct
  • git repository in single system user environment
  • Merge two separate SVN repositories into a single Git repository
  • xcode subversion settings to connect to network based repository
  • 2 Solutions collect form web for “SVN find revision of tag”

    Try this

    svn log /path/to/tag -v --stop-on-copy

    You might see something like this

    r10 | user | 2010-02-07 17:06:01 -0800 (Sun, 07 Feb 2010) | 1 line
    Changed paths:
       A /path/to/tag (from /path/to/branch:5)

    You can see that the tag was branched at revision 5

    If you want to know the revision number of what this tag points to you need to use svn log, which provides data in the format:

    r643 | [author] | [date] | [n] lines
    Added tag
    r643 | [author] | [date] | [n] lines
    [log message]

    If you add the option --stop-on-copy you can find out which revision the tag was created. Run svn log both with and without the --stop-on-copy option and the entry beneath the last one shown when run with the option will show the revision the tag ultimately points to.

    Alternatively, assuming people aren’t doing bad things in your repository (like committing against a tag) you can use svn info, it returns information in the format

    Path: [path]
    URL: [url]
    Revision: [current repository revision]
    Node Kind: directory
    Schedule: normal
    Last Changed Author: [author]
    Last Changed Rev: [last revision this particular path was changed]
    Last Changed Date: YYYY-MM-DD hh:mm:ss TZ

    You might call something like svn info

    Git Baby is a git and github fan, let's start git clone.