Help for delete Old Revision
Bob Eby
ebyrob at gmail.com
Wed Jul 29 15:42:48 UTC 2015
> i want to delete revision from 1 to 5000, it is possible?
This seems to be the first Google hit for
[mercurial delete old revisions]
http://stackoverflow.com/questions/3971961/removing-changesets-or-shrinking-a-mercurial-repository
The first answer is to create a new, unrelated, repository with only
some of the original revisions as follows:
hg -R /path/to/bigrepo export 5001:tip > latestchanges.patch
hg init newsmallrepo
hg -R newsmallrepo import < latestchanges.patch
Thanks,
Robert
More information about the Mercurial
mailing list