Purge parts of a repository

Patrick Mézard pmezard at gmail.com
Mon Nov 5 05:02:15 CST 2007


Roman Kennke a écrit :
> Hello,
> 
> I have converted a CVS Repository to Mercurial. This repository contains
> some very large but obsolete trees and I wouldn't like to carry over all
> the history to the Mercurial repository. This is simply a waste of space
> and bandwith and the old history is still available in the CVS
> repository. Is there a way to purge some subdirs without ruining the
> repository integrity? I figure that I can rm
> -rf .hg/store/data/something but hg verify isn't happy about this
> (understandable). Is there a clean (well, let's say 'cleaner') way to
> achieve the same?

Try a mercurial to mercurial conversion using <http://www.selenic.com/mercurial/wiki/index.cgi/ConvertExtension> and a tailored filemap.

--
Patrick Mézard


More information about the Mercurial mailing list