简体   繁体   中英

diff a working copy with a previous revision

I checked out the latest revision (revision 5 for example) of a trunk from a local repository. I made some changes and now the working copy differs from revision 5 (latest). I want to diff my working copy with revision 2 before committing it. How do I use the command line or tortoise to accomplish this?

Thanks

Try this:

  1. right click on file
  2. select tortoiseSvn menu and select Show Log
  3. select revision 2 and right click on it
  4. from sub menu select "compare with working copy"

You just need to specify the revision number at the command line. The call is like this:

svn diff -r N[:M] 

where M default to your copy if omitted. So in your example you would do:

svn diff -r2

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