Jason S
Jason S

Reputation: 189626

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.

Upvotes: 1

Views: 298

Answers (1)

speshak
speshak

Reputation: 2477

Just use svn cp

svn cp file1 file2 file3 file4 ../otherDir/

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

Upvotes: 2

Related Questions