Patchwork D3999: fileset: 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 <dc431910b3f131468dbef8e9585357e5@localhost.localdomain>
Download mbox | patch
Permalink /patch/33022/
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 rHGaf5c0c933af8: fileset: 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/D3999?vs=9690&id=9710

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

AFFECTED FILES
  mercurial/fileset.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/fileset.py b/mercurial/fileset.py
--- a/mercurial/fileset.py
+++ b/mercurial/fileset.py
@@ -647,11 +647,10 @@ 
         unknown = _intree(['unknown'], tree)
         ignored = _intree(['ignored'], tree)
 
-        r = ctx.repo()
         if basectx is None:
             basectx = ctx.p1()
-        return r.status(basectx, ctx,
-                        unknown=unknown, ignored=ignored, clean=True)
+        return basectx.status(ctx, listunknown=unknown, listignored=ignored,
+                              listclean=True)
     else:
         return None