Reputation: 3642
Is there any way to make a (svn) branch from specific revisions, as i want to skip some revisions (in new branch) in my commit history. For example i have revisions from 1 to 1590 and i want to create a new branch and skip the commits (from revision 1504 to 1574 ) and revision#1584, revision#1586, and revision#1587.
Kindly help me i will be thankful.
Upvotes: 2
Views: 1544
Reputation: 16761
There are two ways to make a new branch from old revision. One is to set your working copy to old revision (right click > TortoiseSVN > Update to revision), and then make a branch (right click > TortoiseSVN > Branch/tag). After that update to head revision with usual Update command.
Another way is to use repository browser (right click > TortoiseSVN > Repo-browser), choose a revision (click on a button in top-right corner with text HEAD), and then use Ctrl+mouse drag-drop to copy folder (or, as alternative, right click on folder > Copy to).
EDIT: Because you want some later revisions in new branch, after you make a branch do a merge. Merge into new branch all the revisions from main line that you want there.
I see now that there is a third way. You can make a branch from HEAD revision, but then do a "reverse merge", to remove unwanted revisions. Just select that option when merging.
Upvotes: 4