Show More
@@ -58,6 +58,7 b' else:' | |||||
58 | from . import scmposix as scmplatform |
|
58 | from . import scmposix as scmplatform | |
59 |
|
59 | |||
60 | parsers = policy.importmod('parsers') |
|
60 | parsers = policy.importmod('parsers') | |
|
61 | rustrevlog = policy.importrust('revlog') | |||
61 |
|
62 | |||
62 | termsize = scmplatform.termsize |
|
63 | termsize = scmplatform.termsize | |
63 |
|
64 | |||
@@ -548,7 +549,11 b' def shortesthexnodeidprefix(repo, node, ' | |||||
548 | if util.safehasattr(parsers, 'nodetree'): |
|
549 | if util.safehasattr(parsers, 'nodetree'): | |
549 | # The CExt is the only implementation to provide a nodetree |
|
550 | # The CExt is the only implementation to provide a nodetree | |
550 | # class so far. |
|
551 | # class so far. | |
551 |
|
|
552 | index = cl.index | |
|
553 | if util.safehasattr(index, 'get_cindex'): | |||
|
554 | # the rust wrapped need to give access to its internal index | |||
|
555 | index = index.get_cindex() | |||
|
556 | nodetree = parsers.nodetree(index, len(revs)) | |||
552 | for r in revs: |
|
557 | for r in revs: | |
553 | nodetree.insert(r) |
|
558 | nodetree.insert(r) | |
554 | if cache is not None: |
|
559 | if cache is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now