hgext/inhibit.py
changeset 1247 f96dad835054
parent 1241 3625d006e81b
child 1292 62229e7451f7
equal deleted inserted replaced
1242:cf846d47bb7e 1247:f96dad835054
   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: