comparison mercurial/pvec.py @ 37969:0db7fe7c34d3

shortest: make pure code also disambigute against revnums at end This makes the pure code more similar to the native code in that it first finds a prefix that's unambiguous among nodeids and then adds hex digits until it no longer looks like a revnum. It will allow us to even better separate the disambiguation with revnums in a later patch. With this patch `hg log -r 0::50 -T '{shortest(node,1)}'` with no native code goes from 25s to 43s. It wasn't exactly usable to begin with, so I don't feel too bad about it. Differential Revision: https://phab.mercurial-scm.org/D3500
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 03 May 2018 15:01:33 -0700
parents 4462a981e8df
children e7aa113b14f7
comparison
equal deleted inserted replaced
37968:0304f22497fa 37969:0db7fe7c34d3