How to totally purge a file from repos & history?

Christian Ebert blacktrash at gmx.net
Wed Aug 13 06:01:06 CDT 2008


* Tim N. van der Leeuw on Wednesday, August 13, 2008 at 01:00:20 -0700
> I have a repository which so far is not shared with others. To this
> repository I committed a number of large, static files which in hindsight
> shouldn't be in there.
> I could just remove them, but b/c they are so big, they make the repository
> much larger than it would need to be.
> Is there a way to totally purge such files, so that no traces of them are
> left in the history?

Convert from hg to hg:

$ hg convert --filemap fmap old new

where file fmap contains something like:

exclude path/to/file/to/purge
...

See "hg convert --help"

c
-- 
  Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]

_F R E E_  _V I D E O S_  -->>  http://www.blacktrash.org/underdogma/


More information about the Mercurial mailing list