--- a/hgext/shelve.py Mon Jan 21 15:29:14 2019 +0000
+++ b/hgext/shelve.py Fri Jan 25 23:36:23 2019 -0800
@@ -674,7 +674,7 @@
hg.update(repo, wctx.node())
files = []
files.extend(shelvectx.files())
- files.extend(shelvectx.parents()[0].files())
+ files.extend(shelvectx.p1().files())
# revert will overwrite unknown files, so move them out of the way
for file in repo.status(unknown=True).unknown:
@@ -809,7 +809,7 @@
"""Rebase restored commit from its original location to a destination"""
# If the shelve is not immediately on top of the commit
# we'll be merging with, rebase it to be on top.
- if tmpwctx.node() == shelvectx.parents()[0].node():
+ if tmpwctx.node() == shelvectx.p1().node():
return shelvectx
overrides = {