Mercurial > hg
comparison hgext/largefiles/overrides.py @ 31023:aea06029919e
revset: import set classes directly from smartset module
Follows up 1be65deb3d54.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 19 Feb 2017 18:16:09 +0900 |
parents | 438173c41587 |
children | b44ab288358e |
comparison
equal
deleted
inserted
replaced
31022:705ecab649ea | 31023:aea06029919e |
---|---|
20 error, | 20 error, |
21 hg, | 21 hg, |
22 match as matchmod, | 22 match as matchmod, |
23 pathutil, | 23 pathutil, |
24 registrar, | 24 registrar, |
25 revset, | |
26 scmutil, | 25 scmutil, |
26 smartset, | |
27 util, | 27 util, |
28 ) | 28 ) |
29 | 29 |
30 from . import ( | 30 from . import ( |
31 lfcommands, | 31 lfcommands, |
853 | 853 |
854 try: | 854 try: |
855 firstpulled = repo.firstpulled | 855 firstpulled = repo.firstpulled |
856 except AttributeError: | 856 except AttributeError: |
857 raise error.Abort(_("pulled() only available in --lfrev")) | 857 raise error.Abort(_("pulled() only available in --lfrev")) |
858 return revset.baseset([r for r in subset if r >= firstpulled]) | 858 return smartset.baseset([r for r in subset if r >= firstpulled]) |
859 | 859 |
860 def overrideclone(orig, ui, source, dest=None, **opts): | 860 def overrideclone(orig, ui, source, dest=None, **opts): |
861 d = dest | 861 d = dest |
862 if d is None: | 862 if d is None: |
863 d = hg.defaultdest(source) | 863 d = hg.defaultdest(source) |