comparison hgext/largefiles/overrides.py @ 41067:f2601cbce209

largefiles: port revset registration to exthelper This tests the merge code that wasn't tested in the previous patch.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 27 Dec 2018 21:27:43 -0500
parents 0a7f582f6f1f
children 876494fd967d
comparison
equal deleted inserted replaced
41066:0358cca1dccf 41067:f2601cbce209
30 logcmdutil, 30 logcmdutil,
31 match as matchmod, 31 match as matchmod,
32 merge, 32 merge,
33 pathutil, 33 pathutil,
34 pycompat, 34 pycompat,
35 registrar,
36 scmutil, 35 scmutil,
37 smartset, 36 smartset,
38 subrepo, 37 subrepo,
39 upgrade, 38 upgrade,
40 url as urlmod, 39 url as urlmod,
886 lfrevs = kwargs.pop(r'lfrevs', None) 885 lfrevs = kwargs.pop(r'lfrevs', None)
887 pushop = orig(*args, **kwargs) 886 pushop = orig(*args, **kwargs)
888 pushop.lfrevs = lfrevs 887 pushop.lfrevs = lfrevs
889 return pushop 888 return pushop
890 889
891 revsetpredicate = registrar.revsetpredicate() 890 @eh.revsetpredicate('pulled()')
892
893 @revsetpredicate('pulled()')
894 def pulledrevsetsymbol(repo, subset, x): 891 def pulledrevsetsymbol(repo, subset, x):
895 """Changesets that just has been pulled. 892 """Changesets that just has been pulled.
896 893
897 Only available with largefiles from pull --lfrev expressions. 894 Only available with largefiles from pull --lfrev expressions.
898 895