D3371: scmutil: make shortesthexnodeidprefix() take a full binary nodeid

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sun Apr 15 09:39:31 EDT 2018


yuja added a comment.


  Queued thanks.
  
  > The shortest() template function depended on the behavior of
  >  revlog._partialmatch() for these types of inputs:
  
  I guess some of them would be bug.

INLINE COMMENTS

> templatefuncs.py:605
> +        except (error.LookupError, error.WdirUnsupported):
> +            return hexnode
> +        if not node:

One minor bug in this patch.
`hg log -T '{shortest(node|short)}\n' -r 'wdir()'` no longer works.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3371

To: martinvonz, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list