obliterate functionality?

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Mar 19 12:32:27 CDT 2008


On 2008-03-19 18:39, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> > git filter-branch --tree-filter 'rm -f drivers/sekrit_aacs_breaker.c' HEAD
> >
> > This will remove the file "drivers/sekit_aacs_breaker.c" from all
> > commits in the repository.  Of course, the hash for any commits which
> > end up getting modified by git-filter-branch will have new SHA-1 id's.
> > Ones before it will not.
> >
> > It shouldn't be that hard for a Hg developer to code equivalent
> > functionality into Mercurial.
>
> It's already there, as part of the 'filemap' part of the convert
> extension:
>
>     echo 'exclude drivers/sekit_aacs_breaker.c'
>     hg convert --filemap linux-2.4-orig linux-2.4

That's totally bogus, sorry.  THe correct convert run would be:

      echo 'exclude drivers/sekit_aacs_breaker.c' > exclude-map
      hg convert --filemap exclude-map linux-2.4-orig linux-2.4



More information about the Mercurial mailing list