comparison hgext/largefiles/overrides.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 9d350fa0708e
children b228ad1f79d7
comparison
equal deleted inserted replaced
20441:eca9d5375606 20442:8524cdf66a12
10 10
11 import os 11 import os
12 import copy 12 import copy
13 13
14 from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \ 14 from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \
15 node, archival, error, merge, discovery, pathutil 15 node, archival, error, merge, discovery, pathutil, revset
16 from mercurial.i18n import _ 16 from mercurial.i18n import _
17 from mercurial.node import hex 17 from mercurial.node import hex
18 from hgext import rebase 18 from hgext import rebase
19 19
20 import lfutil 20 import lfutil
750 750
751 try: 751 try:
752 firstpulled = repo.firstpulled 752 firstpulled = repo.firstpulled
753 except AttributeError: 753 except AttributeError:
754 raise util.Abort(_("pulled() only available in --lfrev")) 754 raise util.Abort(_("pulled() only available in --lfrev"))
755 return [r for r in subset if r >= firstpulled] 755 return revset.baseset([r for r in subset if r >= firstpulled])
756 756
757 def overrideclone(orig, ui, source, dest=None, **opts): 757 def overrideclone(orig, ui, source, dest=None, **opts):
758 d = dest 758 d = dest
759 if d is None: 759 if d is None:
760 d = hg.defaultdest(source) 760 d = hg.defaultdest(source)