[PATCH 2 of 2] revset: changed getset so that it can return a lazyset

Lucas Moscovicz lmoscovicz at fb.com
Tue Feb 11 11:52:49 CST 2014


# HG changeset patch
# User Lucas Moscovicz <lmoscovicz at fb.com>
# Date 1390951154 28800
#      Tue Jan 28 15:19:14 2014 -0800
# Node ID 3e472c6e812daadda941fadffd9ff404d0c1d175
# Parent  daa72c03125908e686e6854c8141f3e584128ea4
revset: changed getset so that it can return a lazyset

Not converting it manually to a baseset anymore. At this point every revset
method should return a baseset typed structure.

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -195,7 +195,7 @@
 def getset(repo, subset, x):
     if not x:
         raise error.ParseError(_("missing argument"))
-    return baseset(methods[x[0]](repo, subset, *x[1:]))
+    return methods[x[0]](repo, subset, *x[1:])
 
 def _getrevsource(repo, r):
     extra = repo[r].extra()


More information about the Mercurial-devel mailing list