Properly aborting a graft

Pierre-Yves David pierre-yves.david at logilab.fr
Mon Aug 6 08:31:25 CDT 2012


On Mon, Aug 06, 2012 at 03:24:44PM +0200, Angel Ezquerra wrote:
> 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?

I use "hg update --clean ." to abort graph.

In my opinion, hg update This sould remove the graft state.


-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120806/b926412b/attachment.pgp>


More information about the Mercurial-devel mailing list