Kusio
Kusio

Reputation: 19

How delete part of SVN history

I want to delete part of revisions from my SVN. For example:

LastID  Last commit
8000    Another commit
7890    First interesting commit 
2000    Some old commit
1000    Some old commit
FirstID Initial commit

I want to achieve:

LastID  Last commit
SomeID  Another commit
FirstID First interesting commit

How can I do this?

Upvotes: 0

Views: 83

Answers (1)

Ivan Jovović
Ivan Jovović

Reputation: 5298

As described here:

svnadmin dump /path/to/current/repo -r7890:LastID > svn.dump
svnadmin create /path/to/new/repo
svnadmin load /path/to/new/repo < svn.dump

Note: revision numbers in new repo will change comparing to the old repo, so your old revision 7890 now will become revision 1.

Upvotes: 2

Related Questions