Mercurial > hg
comparison contrib/perf.py @ 29396:d0ae5b8f80dc
revlog: add a fast path for "ambiguous identifier"
Before fd1bb7c, if the C index.partialmatch raises RevlogError, the Python
code raises "ambiguous identifier" error immediately, which is efficient.
fd1bb7c took hidden revisions into consideration and forced the slow path
enumerating the changelog to double-check hidden revisions. But it's not
necessary if we know the revlog has no hidden revisions.
This patch adds back the fast path for unfiltered revlogs.
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 22 Jun 2016 21:30:49 +0100 |
parents | 330584235c22 |
children | 4533f5b47949 |
comparison
equal
deleted
inserted
replaced
29395:4c8026babe8c | 29396:d0ae5b8f80dc |
---|