# HG changeset patch # User Lucas Moscovicz # Date 1392138038 28800 # Node ID 8524cdf66a12b644f24d9726cc641f2a7aefdb8d # Parent eca9d5375606a6a41ed5f74967825d7af402e4b0 hgext: updated extensions to return a baseset when adding symbols diff -r eca9d5375606 -r 8524cdf66a12 hgext/largefiles/overrides.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 diff -r eca9d5375606 -r 8524cdf66a12 hgext/mq.py --- 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] diff -r eca9d5375606 -r 8524cdf66a12 hgext/transplant.py --- 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