Changes between Version 26 and Version 27 of HowToSVN


Ignore:
Timestamp:
08/06/08 14:27:08 (16 years ago)
Author:
neteler
Comment:

corrected 'Reverting submitted changes'

Legend:

Unmodified
Added
Removed
Modified
  • HowToSVN

    v26 v27  
    140140While 'svn revert' is used to revert local, unsubmitted changes, the procedure differs for code already in the SVN repository. Example:
    141141{{{
    142 find lib/external -type f -name '*.[ch]' | \
    143 while read file ; do
    144       svn merge -c -32526 $file
    145 done
    146 svn ci -m"Reverted to previous version (r32526)... reason ..." lib/external
     142cd lib/external
     143# note the negative revision number:
     144svn merge -c -32526 file(s)
     145svn ci -m"Reverted to previous version (r32526)... reason ..." file(s)
    147146}}}
    148147Here, 32526 is the revision corresponding to the indenting of the trunk. Passing a negative revision to "svn merge -c" will "unmerge" that change.