Seeing a combined diff of many commits in subversion?

前端 未结 6 812
死守一世寂寞
死守一世寂寞 2021-02-05 20:23

I have been asked to review the changes made in SVN revision number 123, 178, 199, 245 and 288 - which are all the commits related to a specific feature. What is the reasonable

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 20:57

    You did not specify if you wanted to base the diff's off HEAD, or each successive REV number (which im unsure why you would actually want to do this? (dont commit if you didnt mean it)).

    
    #!/bin/bash
    for revision in 123 178 199 245 288;
    do
              svn diff http://path/to/svn/file@HEAD http://path/to/svn/file@$revision > $revision.diff
    done
    

    please, windows fan boys, downvote me because my answer involves the bash shell and not the windows shell (despite the original post never mentioning an OS)

提交回复
热议问题