"Stripping" changesets from the past of a repository

Fabrizio Giudici fabrizio.giudici at tidalwave.it
Mon Nov 16 15:16:33 CST 2009


Martin Geisler wrote:
> 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.
>
>   
Used strategy #1 and worked perfectly. Thanks.

-- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/people
Fabrizio.Giudici at tidalwave.it 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20091116/d6fc1d69/attachment.htm>


More information about the Mercurial mailing list