Changes between Version 36 and Version 37 of HowToSVN


Ignore:
Timestamp:
Sep 17, 2009, 11:14:14 PM (15 years ago)
Author:
neteler
Comment:

Reverting a single file explained; fix wording

Legend:

Unmodified
Added
Removed
Modified
  • HowToSVN

    v36 v37  
    164164{{{
    165165cd lib/external
    166 # note the negative revision number:
     166# note the negative revision number (that which you want to undo):
    167167svn merge -c -32526 https://svn.osgeo.org/grass/grass/trunk/
    168 svn ci -m "Reverted to previous version (r32526)... reason ..." file(s)
    169 }}}
    170 Here, 32526 is the revision corresponding to the indenting of the trunk. Passing a negative revision to "svn merge -c" will "unmerge" that change.
     168
     169# verify and submit
     170svn diff file(s)
     171svn ci -m "Reverted to previous version... reason ..." file(s)
     172}}}
     173Here, 32526 is a revision which was undesired. Passing a negative revision to "svn merge -c" will "unmerge" the change(s).
     174
     175Reverting a single file can be done also like this:
     176
     177{{{
     178# get revision number
     179svn log myfile | less
     180
     181# order: "-r bad:good" revision number
     182svn merge -r 32526:32525 file
     183
     184# verify and submit
     185svn diff file
     186svn ci -m "Reverted to previous version ... reason ..." file
     187}}}
     188 
    171189
    172190=== File properties ===