Properly aborting a graft

Angel Ezquerra angel.ezquerra at gmail.com
Mon Aug 6 08:24:44 CDT 2012


Hi,

I'm trying to improve the support for the graft command on TortoiseHg.
One of the things I'm working on is on adding a way to "abort" a
graft.

Since there is no "--abort" option for the "graft" command I thought
that the proper way to abort a graft was to simply do a "hg update
--clean --rev p1()". However, this leaves behind the existing
"graftstate" file, which confuses our TortoiseHg GUI the next time
that you try to run the graft command.

My questions are:
- Is "hg update --clean" the right way to "abort" a graft?
- Would it be safe to manually remove the "graftstate" file? If not,
what is the best way to deal with it?

Thanks,

angel


More information about the Mercurial-devel mailing list