hg export import problem

Brendan Cully brendan at kublai.com
Mon Mar 31 12:33:36 CDT 2008


On Monday, 31 March 2008 at 10:22, Matt Mackall wrote:
> 
> On Mon, 2008-03-31 at 14:27 +0100, Alpár Jüttner wrote:
> > Hi,
> > 
> > I created a patch containing 3 changesets:
> > 
> >         hg export 112 113 114 >../three-commits.patch
> > 
> > then I tried to apply it to another (clean) repo without these changeset
> > and I got this:
> > 
> >         $ hg import --exact ../heap-all.patch
> >         applying ../heap-all.patch
> >         4 files updated, 0 files merged, 1 files removed, 0 files
> >         unresolved
> >         rolling back last transaction
> >         abort: patch is damaged or loses information
> 
> Import does one commit per input file and you can't exactly preserve 3
> commit ids in one commit.

It would be nice if import could notice multiple HG patch headers in a
single file and do separate commits for each (at least optionally). I
don't think it's conceptually terribly difficult, but it'll probably
be a bit fiddly.



More information about the Mercurial mailing list