Hi,
On Friday 29 December 2006 05:29, sudheer bheema wrote:
> I am new to subversion.. Is there a functionality like removing the
> previous revisions from the repository.. I mean if i have 200 revisions
> and i dont need 1-100 revisions, can i specifically remove the revisions
> 1-100 from repository.. Is this possible?? its only to save memory..
You can if you really like to, but it's not this simple.
You have to dump the repository from r101-200 and load the dumpfile into a
new repository. You just have to make sure that all directories you created
in r1-100 are still present.
So you have to create a new repository, add all directories manually and then
import the dumpfile from r101-200 from the old repository using
svnadmin dump -r101:200 /path/to/old/repository > dumpfile
and then
svnadmin load --force-uuid /path/to/new/repository < dumpfile
and cross your fingers :-)
After some checks you can rename or delete the old repository and move the
new one in place.
The revision numbers will change due to this, so you will have to re-checkout
all working dirs, an update will not work anymore.
An other way would be using the Perl Dumpfilter module* I wrote. You can
write an filter which removes all non-dir entries from the dumpfile in
r1-100 but let the (most the time empty) revisions present, so you don't
have to create the dir structure by yourself and the revision numbers don't
change as well. Tell me if you need help with this.
best,
Martin
*) http://www.scharrer-online.de/svn/dumpfilter.shtml
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 29 10:29:18 2006