11.07.2015 Views

Version Control with Subversion - Login

Version Control with Subversion - Login

Version Control with Subversion - Login

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Subversion</strong> Complete Reference$ svn diff http://svn.collab.net/repos/svn/trunk/COMMITTERS@3000 \http://svn.collab.net/repos/svn/trunk/COMMITTERS@3500Index: COMMITTERS===================================================================--- COMMITTERS (revision 3000)+++ COMMITTERS (revision 3500)…Compare revision 3000 to revision 3500 using range notation (pass only the one URL inthis case):$ svn diff -r 3000:3500 http://svn.collab.net/repos/svn/trunk/COMMITTERSIndex: COMMITTERS===================================================================--- COMMITTERS (revision 3000)+++ COMMITTERS (revision 3500)Compare revision 3000 to revision 3500 of all the files in trunk using range notation:$ svn diff -r 3000:3500 http://svn.collab.net/repos/svn/trunkCompare revision 3000 to revision 3500 of only three files in trunk using range notation:$ svn diff -r 3000:3500 --old http://svn.collab.net/repos/svn/trunk \COMMITTERS README HACKINGIf you have a working copy, you can obtain the differences <strong>with</strong>out typing in the long URLs:$ svn diff -r 3000:3500 COMMITTERSIndex: COMMITTERS===================================================================--- COMMITTERS (revision 3000)+++ COMMITTERS (revision 3500)Use --diff-cmd CMD -x to pass arguments directly to the external diff program:$ svn diff --diff-cmd /usr/bin/diff -x "-i -b" COMMITTERSIndex: COMMITTERS===================================================================0a1,2> This is a test>Lastly, you can use the --xml option along <strong>with</strong> the --summarize option to view XML describingthe changes that occurred between revisions, but not the contents of the diff itself:$ svn diff --summarize --xml http://svn.red-bean.com/repos/test@r2 \http://svn.red-bean.com/repos/test

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!