diff -r e828975722c8 -r dd7c294365f0 hgext/shelve.py --- a/hgext/shelve.py Wed Oct 09 14:15:34 2013 -0700 +++ b/hgext/shelve.py Fri Oct 11 17:19:40 2013 -0700 @@ -380,11 +380,7 @@ def finishmerge(ui, repo, ms, stripnodes, name, opts): # Reset the working dir so it's no longer in a merge state. dirstate = repo.dirstate - for f in ms: - if dirstate[f] == 'm': - dirstate.normallookup(f) - dirstate._pl = (dirstate._pl[0], nullid) - dirstate._dirty = dirstate._dirtypl = True + dirstate.setparents(dirstate._pl[0]) shelvedstate.clear(repo) def unshelvecontinue(ui, repo, state, opts):