Patchwork D3011: fileset: use context-returning revpair()

login
register
mail settings
Submitter phabricator
Date April 1, 2018, 10:37 a.m.
Message ID <2e6362ee397cbcc51dc43d3d73909bc7@localhost.localdomain>
Download mbox | patch
Permalink /patch/30114/
State Not Applicable
Headers show

Comments

phabricator - April 1, 2018, 10:37 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf290f130d7fc: fileset: use context-returning revpair() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3011?vs=7491&id=7499

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

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
@@ -513,9 +513,7 @@ 
     revspec = getstring(r, reverr)
     if not revspec:
         raise error.ParseError(reverr)
-    basenode, node = scmutil.revpairnodes(repo, [baserevspec, revspec])
-    basectx = repo[basenode]
-    ctx = repo[node]
+    basectx, ctx = scmutil.revpair(repo, [baserevspec, revspec])
     return getset(mctx.switch(ctx, _buildstatus(ctx, x, basectx=basectx)), x)
 
 @predicate('subrepo([pattern])')