D3999: fileset: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)

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


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

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
 



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


More information about the Mercurial-devel mailing list