yangsibai
yangsibai

Reputation: 1727

svn copy:how to ignore files not under version control

I want to use svn copy to create a new tag,but I have some files are not under control(e.g.:some js files which are generated by coffeescript).svn copy command will abort and display error: error: <file> is not under version control.

My Question is:how to ignore files which are not under version control when I run svn copy?

My command is svn copy trunk/* tags/2014-08-18/

Upvotes: 3

Views: 503

Answers (1)

rph
rph

Reputation: 911

The wildcard (trunk/*) will expand to all files inside that directory. If you have unversioned files svn will fail to copy them and abort.

Solution 1:

  • Remove the wildcard: svn cp trunk dest.

Solution 2:

  • List only the versioned files to copy: svn cp trunk/a.txt trunk/b.txt dest.

Upvotes: 1

Related Questions