简体   繁体   中英

Calling svn diff on some revision and previous revision, with no local copy

I have no local copies of any files from the SVN repository. I do have a full path URL to some file in SVN. How can I see the difference between revision 1234 of that file, and it's previous revision, whatever it may be?

svn diff -c 1234 $URL

Assuming you are using a version of Subversion newer than 1.4 when -c was added. Otherwise you need to do:

svn diff -r 1233:1234 $URL

If you want to see a diff including changes across multiple revisions you can just expand the revision numbers you provide to -r .

You can see detailed documentation of the diff subcommand in the SVN Book .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM