| 137 | |
| 138 | === Reverting submitted changes === |
| 139 | |
| 140 | While 'svn revert' is used to revert local, unsubmitted changes, the procedure differs for code already in the SVN repository. Example: |
| 141 | {{{ |
| 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 |
| 147 | }}} |
| 148 | Here, 32526 is the revision corresponding to the indenting of the trunk. Passing a negative revision to "svn merge -c" will "unmerge" that change. |
| 149 | |