문제

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'
도움이 되었습니까?

해결책

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

But you can use:

svn changelist 'Pink Fairy Armadillo' path_to_dir/* 

Should achieve the same thing.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top