Last Updated: February 25, 2016
·
8.999K
· frisocki

SVN changelist and selective commit

For those still living in an SVN world,

When you have a multitude of modified files in your working copy, and want to commit all but 1 or 2 files without all the hand typing, enter changelists.

$ svn status
M file01
M ...
M file100
M file_not_ready_for_commit

// This will add all working copy files, can be adjusted to add only relevant files
$ svn changelist mychangelist -R .

// Remove the nascent one(s)
$ svn changelist mychangelist --remove file_not_ready_for_commit

// Commit only the files in the changelist
$ svn commit --changelist mychangelist

For all the details:
http://svnbook.red-bean.com/en/1.7/svn.advanced.changelists.html