From: Jon <jonawr_at_hotmail.com>
Date: Thu, 27 Mar 2008 13:01:38 -0600
I have a fairly large repo for which I want to flush all of the history. The key factor is to avoid having to do a new checkout and use existing working copies. Does anybody see any blatant issues with the following tasks? I was able to get this to work and all appears fine through initial testing.
myrepo is the existing repo with 37 revisions. I want to obliterate all history up to revision 33. Here are the commands to flush all history up to r33 and hopefully avoid a new checkout and allow the users to keep the existing working copies.
svnadmin dump -r1:33 myrepo >myrepo_1to33.dump
svnadmin dump -r34:37 myrepro >myrepo_34_37.dump
cat myrepo_1to33.dump | svndumpfilter exclude /
mv myrepo myrepo _orig
svnadmin create myrepo
svnadmin load --force-uuid myrepo <myrepo_empty_to_r33.dump
svnadmin load --force-uuid myrepo < myrepo_34_37.dump
Then run 'svn switch' on your working copy which should
This is an archived mail posted to the Subversion Users mailing list.