[PATCH] hgweb: run search instead of showing wrong error for ambigious identifier
Kevin Bullock
kbullock+mercurial at ringworld.org
Thu Jul 18 10:53:43 CDT 2013
On 17 Jul 2013, at 11:11 PM, Kevin Bullock wrote:
> On 12 Jul 2013, at 5:16 PM, Alexander Plavin wrote:
>
>> # HG changeset patch
>> # User Alexander Plavin <me at aplavin.ru>
>> # Date 1373579928 -14400
>> # Fri Jul 12 01:58:48 2013 +0400
>> # Node ID f6775d51fb76b4f393050eb1350d42b2c4676784
>> # Parent 85e44ad965f6141de53e78a5bcf64486489c3604
>> hgweb: run search instead of showing wrong error for ambigious identifier
>>
>> Before this when multiple changesets hashes in the repos started with the
>> search query string, error was given that the revision isn't found, and it
>> was misleading. Now a simple keyword search runs in this case.
>
> The result is that it's unclear whether you're seeing search results or just a log view up thru a given rev. I'd like to make that distinction more obvious before we take this patch, but I would like to do this.
After further discussion on IRC, I've decided to take this. Being able to search for e.g. 'bea' (a word that looks like the start of a cset hash) without getting "revision not found" is definitely an improvement.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial-devel
mailing list