Show More
@@ -195,7 +195,10 b' def getargs(x, min, max, err):' | |||
|
195 | 195 | def getset(repo, subset, x): |
|
196 | 196 | if not x: |
|
197 | 197 | raise error.ParseError(_("missing argument")) |
|
198 |
|
|
|
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 | 203 | def _getrevsource(repo, r): |
|
201 | 204 | extra = repo[r].extra() |
@@ -1949,7 +1952,9 b' def match(ui, spec):' | |||
|
1949 | 1952 | tree = findaliases(ui, tree) |
|
1950 | 1953 | weight, tree = optimize(tree, True) |
|
1951 | 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 | 1958 | return mfunc |
|
1954 | 1959 | |
|
1955 | 1960 | def formatspec(expr, *args): |
General Comments 0
You need to be logged in to leave comments.
Login now