##// END OF EJS Templates
remotenames: use util.always instead of handcrafted lambda
Yuya Nishihara -
r40102:fe641781 default
parent child Browse files
Show More
@@ -41,6 +41,7 b' from mercurial import ('
41 revsetlang,
41 revsetlang,
42 smartset,
42 smartset,
43 templateutil,
43 templateutil,
44 util,
44 )
45 )
45
46
46 from mercurial.utils import (
47 from mercurial.utils import (
@@ -354,7 +355,7 b' def _revsetutil(repo, subset, x, rtypes)'
354 kind, pattern, matcher = stringutil.stringmatcher(
355 kind, pattern, matcher = stringutil.stringmatcher(
355 revsetlang.getstring(args[0], _('argument must be a string')))
356 revsetlang.getstring(args[0], _('argument must be a string')))
356 else:
357 else:
357 matcher = lambda a: True
358 matcher = util.always
358
359
359 revs = set()
360 revs = set()
360 cl = repo.changelog
361 cl = repo.changelog
General Comments 0
You need to be logged in to leave comments. Login now