D3998: uncommit: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Aug 1 13:08:59 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3bd22c4d3711: uncommit: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3998?vs=9689&id=9709

REVISION DETAIL
  https://phab.mercurial-scm.org/D3998

AFFECTED FILES
  hgext/uncommit.py

CHANGE DETAILS

diff --git a/hgext/uncommit.py b/hgext/uncommit.py
--- a/hgext/uncommit.py
+++ b/hgext/uncommit.py
@@ -182,7 +182,7 @@
 
             with repo.dirstate.parentchange():
                 repo.dirstate.setparents(newid, node.nullid)
-                s = repo.status(old.p1(), old, match=match)
+                s = old.p1().status(old, match=match)
                 _fixdirstate(repo, old, repo[newid], s)
 
 def predecessormarkers(ctx):



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list