diff hgext/transplant.py @ 20442:8524cdf66a12

hgext: updated extensions to return a baseset when adding symbols
author Lucas Moscovicz <lmoscovicz@fb.com>
date Tue, 11 Feb 2014 09:00:38 -0800
parents acb6cceaffd5
children 8c2f1e2a11ff
line wrap: on
line diff
--- 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