Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial: how to abort 'graft' state?

Tags:

mercurial

When a hg graft fails, it leaves behind .hg/graftstate which signals the graft-command that a graft is in process and can be continued. Except of deleting .hg/graftstate, is there a cleaner way to abort the grafting?

like image 876
mstrap Avatar asked Nov 15 '12 18:11

mstrap


2 Answers

You want hg update --clean . The earlier answer was missing the "." to indicate where to update to.

like image 76
its_lee Avatar answered Oct 04 '22 22:10

its_lee


" hg update --clean " should do.

like image 41
Luke Luo Avatar answered Oct 04 '22 22:10

Luke Luo