comparison hgext/beautifygraph.py @ 49448:5fe7e9eda0f3

revlog: make _partialmatch fail fast on almost-hex inputs Before this change, resolving a revision like [0123456789^] on a large repo can take multiple seconds because: - hg does not realize this is a revset, so it tries various things, including _partialmatch(b"0123456789^") - after the rust lookup fails, it falls back to pure hg - pure hg takes all-but-last chars and converts them to binary, which *succeeds*, so it does the expensive part.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Mon, 15 Aug 2022 16:12:41 +0100
parents d44e3c45f0e4
children caa0a25f7243
comparison
equal deleted inserted replaced
49447:3c5d0f879404 49448:5fe7e9eda0f3