Alex
Alex

Reputation: 799

How to create a branch in subversion excluding certain files?

Usually I'm using Tortoise SVN to manage my projects and it would be especially great if somebody could give a list of steps how to achieve it using Tortoise SVN but any other solution is good enough.

I need to create a branch of a folder but I would like to exclude certain files or folders from the source. Is it possible? How to do it? Normally it is a matter of excluding, let's say *.sln files.

The solution to create a full branch and then remove extra files does not work in my case because there are security requirements to completely block access to the excluded files on the branch. With this approach there is a way to see removed files in the history.

Thank you, Alex

Upvotes: 0

Views: 463

Answers (2)

Lazy Badger
Lazy Badger

Reputation: 97282

Branch in Subversion is just svn cp from one node to another. You can prepare your branch by WC -> WC copy (or svn switch to not-existing branch) and removing unwanted files before commit into branch: URL->URL is not single possible way of branching

Upvotes: 1

Stanislav Iegorov
Stanislav Iegorov

Reputation: 91

Simplest possible to my mind is just create branch, then remove unnecessary items and commit your changes to the branch.

Upvotes: 1

Related Questions