Question

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'
Was it helpful?

Solution

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.

OTHER TIPS

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

But you can use:

svn changelist 'Pink Fairy Armadillo' path_to_dir/* 

Should achieve the same thing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top