Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg unshelve: abort: working directory parents do not match unshelve state

Tags:

mercurial

I recently tried unshelving a change on Mercurial, and an unshelving rebase conflict occurred, which I ended up resolving. Something went wrong after that, because now when I try to do anything else, I get the following error:

abort: unshelve already in progress
(use 'hg unshelve --continue' or 'hg unshelve --abort')

And when I try to use either of those two options, I get the following:

abort: working directory parents do not match unshelve state

How can I restore my working directory to a usable state?

like image 234
Joe Z. Avatar asked Feb 12 '15 19:02

Joe Z.


1 Answers

I deleted .hg/shelvedstate and that fixed it for me. You can also move that file instead i.e. mv .hg/shelvedstate .hg/backupshelvedstate if you want to keep the shelvedstate.

like image 96
Don Avatar answered Sep 28 '22 06:09

Don