diff -r 531b86cc8fb3 -r 7848f284b211 mercurial/scmutil.py --- a/mercurial/scmutil.py Mon May 07 16:12:12 2018 -0700 +++ b/mercurial/scmutil.py Sun Apr 29 10:07:40 2018 -0700 @@ -437,6 +437,9 @@ return '%d:%s' % (rev, hexfunc(node)) def resolvehexnodeidprefix(repo, prefix): + if (prefix.startswith('x') and + repo.ui.configbool('experimental', 'revisions.prefixhexnode')): + prefix = prefix[1:] try: # Uses unfiltered repo because it's faster when prefix is ambiguous/ # This matches the shortesthexnodeidprefix() function below.