Mercurial > evolve
changeset 2893:0938f3a09a1e
directaccess: fix with tree without order
1b28525e6698 removes order from tree, changing the indexes in gethashsymbols.
Fix that
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 31 Aug 2017 17:00:09 +0200 |
parents | 0eed6678b150 |
children | 31aa9d097d29 |
files | hgext3rd/evolve/hack/directaccess.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/hack/directaccess.py Fri Sep 01 11:08:22 2017 +0200 +++ b/hgext3rd/evolve/hack/directaccess.py Thu Aug 31 17:00:09 2017 +0200 @@ -155,12 +155,12 @@ return [] results = [] - if len(tree) == 2 and tree[0] == "symbol": + if len(tree) in (2, 3) and tree[0] == "symbol": results.append(tree[1]) elif tree[0] == "func" and tree[1] == _listtuple: # the optimiser will group sequence of hash request results += tree[2][1].split('\0') - elif len(tree) >= 3: + elif len(tree) >= 2: for subtree in tree[1:]: results += gethashsymbols(subtree, maxrev) # return directly, we don't need to filter symbols again