Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN---Add current directory (.) to changelist

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'
like image 332
user3371321 Avatar asked Mar 28 '14 14:03

user3371321


People also ask

How to create changelist in svn?

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.

How do I delete a file from SVN?

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…


2 Answers

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.

like image 51
ThisSuitIsBlackNot Avatar answered Nov 03 '22 00:11

ThisSuitIsBlackNot


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
like image 43
iabw Avatar answered Nov 03 '22 01:11

iabw