equal
deleted
inserted
replaced
233 def _posttreebuilthook(orig, tree, repo): |
233 def _posttreebuilthook(orig, tree, repo): |
234 # This is use to enabled direct hash access |
234 # This is use to enabled direct hash access |
235 # We extract the symbols that look like hashes and add them to the |
235 # We extract the symbols that look like hashes and add them to the |
236 # explicitaccess set |
236 # explicitaccess set |
237 orig(tree, repo) |
237 orig(tree, repo) |
238 if repo and repo.filtername == 'visible': |
238 if repo is not None and repo.filtername == 'visible': |
239 prelength = len(repo._explicitaccess) |
239 prelength = len(repo._explicitaccess) |
240 repo.symbols = gethashsymbols(tree) |
240 repo.symbols = gethashsymbols(tree) |
241 cl = repo.unfiltered().changelog |
241 cl = repo.unfiltered().changelog |
242 for node in repo.symbols: |
242 for node in repo.symbols: |
243 try: |
243 try: |