changeset 37257:f290f130d7fc

fileset: use context-returning revpair() Differential Revision: https://phab.mercurial-scm.org/D3011
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 31 Mar 2018 23:26:07 -0700
parents 3c7c13e75663
children f654105f1517
files mercurial/fileset.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/fileset.py	Sat Mar 31 23:31:28 2018 -0700
+++ b/mercurial/fileset.py	Sat Mar 31 23:26:07 2018 -0700
@@ -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])')