##// END OF EJS Templates
revset: changed mfunc and getset to work with old style revset methods...
Lucas Moscovicz -
r20527:bde426f1 default
parent child Browse files
Show More
@@ -195,7 +195,10 b' def getargs(x, min, max, err):'
195 def getset(repo, subset, x):
195 def getset(repo, subset, x):
196 if not x:
196 if not x:
197 raise error.ParseError(_("missing argument"))
197 raise error.ParseError(_("missing argument"))
198 return methods[x[0]](repo, subset, *x[1:])
198 s = methods[x[0]](repo, subset, *x[1:])
199 if util.safehasattr(s, 'set'):
200 return s
201 return baseset(s)
199
202
200 def _getrevsource(repo, r):
203 def _getrevsource(repo, r):
201 extra = repo[r].extra()
204 extra = repo[r].extra()
@@ -1949,7 +1952,9 b' def match(ui, spec):'
1949 tree = findaliases(ui, tree)
1952 tree = findaliases(ui, tree)
1950 weight, tree = optimize(tree, True)
1953 weight, tree = optimize(tree, True)
1951 def mfunc(repo, subset):
1954 def mfunc(repo, subset):
1952 return getset(repo, subset, tree)
1955 if util.safehasattr(subset, 'set'):
1956 return getset(repo, subset, tree)
1957 return getset(repo, baseset(subset), tree)
1953 return mfunc
1958 return mfunc
1954
1959
1955 def formatspec(expr, *args):
1960 def formatspec(expr, *args):
General Comments 0
You need to be logged in to leave comments. Login now