Show More
@@ -545,12 +545,10 b' def shortesthexnodeidprefix(repo, node, ' | |||||
545 | if cache is not None: |
|
545 | if cache is not None: | |
546 | nodetree = cache.get(b'disambiguationnodetree') |
|
546 | nodetree = cache.get(b'disambiguationnodetree') | |
547 | if not nodetree: |
|
547 | if not nodetree: | |
548 | try: |
|
548 | if util.safehasattr(parsers, 'nodetree'): | |
|
549 | # The CExt is the only implementation to provide a nodetree | |||
|
550 | # class so far. | |||
549 | nodetree = parsers.nodetree(cl.index, len(revs)) |
|
551 | nodetree = parsers.nodetree(cl.index, len(revs)) | |
550 | except AttributeError: |
|
|||
551 | # no native nodetree |
|
|||
552 | pass |
|
|||
553 | else: |
|
|||
554 | for r in revs: |
|
552 | for r in revs: | |
555 | nodetree.insert(r) |
|
553 | nodetree.insert(r) | |
556 | if cache is not None: |
|
554 | if cache is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now