12

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'
user3371321
  • 253
  • 2
  • 6

3 Answers3

23

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.

Community
  • 1
  • 1
ThisSuitIsBlackNot
  • 23,492
  • 9
  • 63
  • 110
  • 1
    As ridiculous as it may sound I read the changelist section a few days ago but judging from today my brain somehow didn't pick up that part. – user3371321 Mar 28 '14 at 20:57
  • 4
    What to do in case of "directory is not under version control and is not part of the commit, yet its child is part of the commit."? – Gaurav Dec 25 '18 at 10:46
1

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
Community
  • 1
  • 1
iabw
  • 1,108
  • 1
  • 9
  • 24
  • 2
    This doesn't add the directory itself to the changelist, which is what the OP asked about. And directories still can't be added to changelists in SVN 1.8 (the latest) according to the [documentation](http://svnbook.red-bean.com/nightly/en/svn.advanced.changelists.html#svn.advanced.changelists.limitations). – ThisSuitIsBlackNot Jul 06 '15 at 17:13
  • 1
    I've edited my comment to attempt to be slightly more clear about the hopefully helpful piece of advice I added on a whim to an already answered year old question. You could just edit it next time, if you find it lacking.... – iabw Jul 06 '15 at 18:22
-4

But you can use:

svn changelist 'Pink Fairy Armadillo' path_to_dir/* 

Should achieve the same thing.

Dherik
  • 17,757
  • 11
  • 115
  • 164
SeedofWInd
  • 147
  • 1
  • 4