Revset search syntax in hgweb

Alexander Plavin me at aplavin.ru
Thu Jul 11 10:16:12 CDT 2013


It's sad to see no reply for such a long time, as I'm not sure what
exact behavior  is expected at hgweb search.
For example, in the current version in hgweb you can't search for just
'abc' at the Mercurial repo, and this query returns error that there
is no such revision. This is because there are several changesets with
hashes starting at 'abc', and an exception about ambiguous query is
thrown (and this results in incorrect error).
In my opinion the most intuitive would be to interpret only several
certain formats as revision specifiers: '[0-9]+',
'[0-9]+:[0-9A-Fa-f]{8}', '[0-9]+:[0-9A-Fa-f]{40}', '[0-9A-Fa-f]{40}',
and just when they define a revision unambiguously. In all other cases
a search will be performed. Am I correct here, that it would be
better?


More information about the Mercurial-devel mailing list