Should hg import be atomic?

Chris Mason mason at suse.com
Sat May 6 15:37:59 CDT 2006


On Saturday 06 May 2006 09:57, Colin McMillen wrote:

> It seems to me like, if one hunk of a patch file fails, the entire
> patch shouldn't be applied. In other words, Battle.py and Engine.py
> should be unmodified in this case. Running "hg revert" immediately
> after the failure will fix the working directory, but I'm wondering if
> a revert should happen by default after a failed patch import.

A common use case would be to import a patch you know will have rejects, fix 
the rejects and then commit.

-chris


More information about the Mercurial mailing list