I created a changelist by doing...
$ svn changelist my_changes
... added files to it, and then committed the changelist...
$ svn ci --changelist my_changes --keep-changelists
... so now, I have "kept" my changelist and it shows up every time I view status.
$ svn status
... modified/added/deleted files listed here...
--- Changelist 'my_changes':
... files that are a part of this changelist listed here...
I "kept" the changelist for a reason, but I don't need it anymore so I'm ready to remove it. How do I remove this changelist from SVN? I know how to remove files from the changelist, but not the changelist itself.
Remove all the associated files from a changelist and it'll disappear.
Official way
See https://stackoverflow.com/a/15992735/253468
Manual way
i.e.
svn changelist --remove file.name
Automation in Bash
Explanation:
svn status
: output all the modified filessed
: find the changelist and take the output after the CL title until the next CL or the end ofsvn status
's outputgrep
: remove the CL titles from the bufferawk
: remove the file statuses, keep only the filenames (i.e. the second column)xargs
: put each line as an argument tosvn changelist
(may need tweaks if you have spaces or special characters in the filenames)
Example run