##// END OF EJS Templates
revset: use a single return statement in matcher function...
Pierre-Yves David -
r22686:2717dcff default
parent child Browse files
Show More
@@ -2063,8 +2063,10 b' def match(ui, spec, repo=None):'
2063 weight, tree = optimize(tree, True)
2063 weight, tree = optimize(tree, True)
2064 def mfunc(repo, subset):
2064 def mfunc(repo, subset):
2065 if util.safehasattr(subset, 'set'):
2065 if util.safehasattr(subset, 'set'):
2066 return getset(repo, subset, tree)
2066 result = getset(repo, subset, tree)
2067 return getset(repo, baseset(subset), tree)
2067 else:
2068 result = getset(repo, baseset(subset), tree)
2069 return result
2068 return mfunc
2070 return mfunc
2069
2071
2070 def formatspec(expr, *args):
2072 def formatspec(expr, *args):
General Comments 0
You need to be logged in to leave comments. Login now