changeset 40066:fe64178103b7

remotenames: use util.always instead of handcrafted lambda
author Yuya Nishihara <yuya@tcha.org>
date Fri, 05 Oct 2018 21:30:55 +0900
parents 25533575d04e
children fba7428a0ef9
files hgext/remotenames.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotenames.py	Fri Oct 05 21:29:21 2018 +0900
+++ b/hgext/remotenames.py	Fri Oct 05 21:30:55 2018 +0900
@@ -41,6 +41,7 @@
     revsetlang,
     smartset,
     templateutil,
+    util,
 )
 
 from mercurial.utils import (
@@ -354,7 +355,7 @@
         kind, pattern, matcher = stringutil.stringmatcher(
             revsetlang.getstring(args[0], _('argument must be a string')))
     else:
-        matcher = lambda a: True
+        matcher = util.always
 
     revs = set()
     cl = repo.changelog