"Stripping" changesets from the past of a repository

Martin Geisler mg at lazybytes.net
Mon Nov 16 14:56:34 CST 2009


Fabrizio Giudici <fabrizio.giudici at tidalwave.it> writes:

> Hi all. A few months ago I've converted almost all of my projects that
> were previously using Subversion to Mercurial and I'm pretty fine. A
> residual problem is that my Mercurial repos are much larger than they
> should be as in Subversion there were lots of binary files committed.
> I'd like to get rid of every trace of those files, if possible:
>
> 1. Either by stripping a specific set of resources from a given revision
> **backwards**

Take a look at the --filemap option to 'hg convert'. It will let you do
a hg->hg conversion where you can exclude some files.

> 2. Or eventually scratching all revisions before a given one "R", so that it
> seems that the repository has been created at revision "R".

Like Igor says, 'hg convert' is your friend here too.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial/attachments/20091116/8c1aebbd/attachment.pgp>


More information about the Mercurial mailing list