Comments
Patch
@@ -214,12 +214,13 @@
marked as modified `hg status`)
"""
+ opts = pycompat.byteskwargs(opts)
unfi = repo.unfiltered()
with repo.wlock(), repo.lock(), repo.transaction('unamend'):
# identify the commit from which to unamend
curctx = repo['.']
-
+ match = scmutil.match(curctx, opts)
rewriteutil.precheck(repo, [curctx.rev()], 'unamend')
# identify the commit to which to unamend
@@ -256,7 +257,7 @@
dirstate = repo.dirstate
with dirstate.parentchange():
- _fixdirstate(repo, curctx, newpredctx)
+ _fixdirstate(repo, curctx, newpredctx, match)
mapping = {curctx.node(): (newprednode,)}
scmutil.cleanupnodes(repo, mapping, 'unamend', fixphase=True)