hgext: updated extensions to return a baseset when adding symbols
authorLucas Moscovicz <lmoscovicz@fb.com>
Tue, 11 Feb 2014 09:00:38 -0800
changeset 20442 8524cdf66a12
parent 20441 eca9d5375606
child 20443 b68984d288d4
hgext: updated extensions to return a baseset when adding symbols
hgext/largefiles/overrides.py
hgext/mq.py
hgext/transplant.py
--- a/hgext/largefiles/overrides.py	Thu Jan 30 20:22:43 2014 -0800
+++ b/hgext/largefiles/overrides.py	Tue Feb 11 09:00:38 2014 -0800
@@ -12,7 +12,7 @@
 import copy
 
 from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \
-    node, archival, error, merge, discovery, pathutil
+        node, archival, error, merge, discovery, pathutil, revset
 from mercurial.i18n import _
 from mercurial.node import hex
 from hgext import rebase
@@ -752,7 +752,7 @@
         firstpulled = repo.firstpulled
     except AttributeError:
         raise util.Abort(_("pulled() only available in --lfrev"))
-    return [r for r in subset if r >= firstpulled]
+    return revset.baseset([r for r in subset if r >= firstpulled])
 
 def overrideclone(orig, ui, source, dest=None, **opts):
     d = dest
--- a/hgext/mq.py	Thu Jan 30 20:22:43 2014 -0800
+++ b/hgext/mq.py	Tue Feb 11 09:00:38 2014 -0800
@@ -3409,7 +3409,7 @@
     """
     revset.getargs(x, 0, 0, _("mq takes no arguments"))
     applied = set([repo[r.node].rev() for r in repo.mq.applied])
-    return [r for r in subset if r in applied]
+    return revset.baseset([r for r in subset if r in applied])
 
 # tell hggettext to extract docstrings from these functions:
 i18nfunctions = [revsetmq]
--- a/hgext/transplant.py	Thu Jan 30 20:22:43 2014 -0800
+++ b/hgext/transplant.py	Tue Feb 11 09:00:38 2014 -0800
@@ -670,7 +670,8 @@
         s = revset.getset(repo, subset, x)
     else:
         s = subset
-    return [r for r in s if repo[r].extra().get('transplant_source')]
+    return revset.baseset([r for r in s if
+        repo[r].extra().get('transplant_source')])
 
 def kwtransplanted(repo, ctx, **args):
     """:transplanted: String. The node identifier of the transplanted