Subversion: How to find the differences between two tags?

前端 未结 6 1484
悲哀的现实
悲哀的现实 2020-12-29 10:15

I know that a diff between two tags lists the \'files\' which have been changed between those two tags by the following method.

svn diff tag1 tag2 |grep In         


        
6条回答
  •  没有蜡笔的小新
    2020-12-29 11:03

    You can first find the revisions of the tags:

    svn info http://svn.twig-project.org/tags/RELEASE_0_9_7 | grep 'Last Changed Rev'
    Last Changed Rev: 331
    
    svn info http://svn.twig-project.org/tags/RELEASE_0_9_8 | grep 'Last Changed Rev'
    Last Changed Rev: 343
    

    You're not really looking for a diff, you are looking for a log. So do a verbose log between those revisions and you will get the commits including changed files.

    svn log -v -q -r 331:343 http://svn.twig-project.org/trunk
    
    ------------------------------------------------------------------------
    r332 | fabien | 2010-06-12 18:30:02 +0200 (Sat, 12 Jun 2010)
    Changed paths:
       M /trunk/CHANGELOG
       M /trunk/lib/Twig/Environment.php
    ------------------------------------------------------------------------
    r333 | fabien | 2010-06-12 18:45:04 +0200 (Sat, 12 Jun 2010)
    Changed paths:
       M /trunk/CHANGELOG
       M /trunk/lib/Twig/Environment.php
    

提交回复
热议问题