I created a .svnignore
file and then set it with the command $ svn propset svn:ignore -R -F .svnignore .
. Now my current directory, .
, and another subdirectory, figures
, are shown as modified.
$ svn status
M .
M figures
When I try adding these two directories to a changelist, it fails. How do I add these two directories to a changelist?
$ svn changelist 'Pink Fairy Armadillo' . figures
Skipped '.'
Skipped 'figures'
Use a changeset. You can add as many files as you like to the changeset, all at once, or over several commands; and then commit them all in one go. svnbook.red-bean.com/en/1.6/svn.advanced.changelists.html -- The svn keyword is "changelist", which is addressed in the first answer and most upvoted.
To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…
How do I add these two directories to a changelist?
You can't. From the SVN documentation:
Changelist Limitations
Changelists can be assigned only to files—Subversion doesn't currently support the use of changelists with directories.
Not sure if this was true last March, but you can recursively add all the files in a directory using this command
svn changelist my_changelist --recursive folder_name
It does add EVERYTHING, and not just modified files, but your commit should only hit the modified stuff anyway, and you can use the same --recursive flag to remove a folder from the changelist - see this answer
svn changelist --remove --recursive folder_name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With