Patchwork D4000: patch: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)

login
register
mail settings
Submitter phabricator
Date Aug. 1, 2018, 5:09 p.m.
Message ID <bd1d0065c8a895dfba5db1a0e2f9a9b9@localhost.localdomain>
Download mbox | patch
Permalink /patch/33025/
State Not Applicable
Headers show

Comments

phabricator - Aug. 1, 2018, 5:09 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG59af0c7d103f: patch: 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/D4000?vs=9691&id=9712

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

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -2326,7 +2326,7 @@ 
         relfiltered = True
 
     if not changes:
-        changes = repo.status(ctx1, ctx2, match=match)
+        changes = ctx1.status(ctx2, match=match)
     modified, added, removed = changes[:3]
 
     if not modified and not added and not removed: