开发者

svn copy on a subset of a directory

I have a directory in svn which has about 30 files. I want to copy 4 of those to another directory in svn, so that I have traceability.

Is there a way that I can do this? or do I lose traceability?

The only way I could think of is to copy the whole directory, and remove all the files I don't need.

clarification:

Use case:

The root of the server is http://someserver/svn.

I have http://someserver/svn/tools/foo/trunk checked out locally.

There is also a http://someserver/svn/tools/bar/trunk.

I 开发者_运维技巧want to copy 4 files from http://someserver/svn/tools/foo/trunk/widgets/baz to http://someserver/svn/tools/foo/trunk/widgets/quux.


Just use svn cp

svn cp file1 file2 file3 file4 ../otherDir/

Then commit. You'll get to keep your history that way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜