diff -r 1726a53a8494 -r dfca84970da8 mercurial/shelve.py --- a/mercurial/shelve.py Fri Jan 15 01:20:47 2021 +0100 +++ b/mercurial/shelve.py Mon May 18 17:29:53 2020 -0400 @@ -812,7 +812,7 @@ with repo.lock(): checkparents(repo, state) ms = mergestatemod.mergestate.read(repo) - if list(ms.unresolved()): + if ms.unresolvedcount(): raise error.Abort( _(b"unresolved conflicts, can't continue"), hint=_(b"see 'hg resolve', then 'hg unshelve --continue'"),