[python-committers] We will be moving to GitHub (hopefully) in 2016
ezio.melotti at gmail.com
Tue Jan 5 01:04:30 EST 2016
On Tue, Jan 5, 2016 at 7:38 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 5 January 2016 at 11:33, R. David Murray <rdmurray at bitdance.com> wrote:
>> On Tue, 05 Jan 2016 01:26:58 +0000, "Gregory P. Smith" <greg at krypto.org> wrote:
>>> On Mon, Jan 4, 2016 at 12:34 PM R. David Murray <rdmurray at bitdance.com>
>>> > to have to do some extra work to make the hash links work in the bug
>>> > tracker, since I don't think there's any a priori way to distinguish
>>> > between hg hashes and git hashes.
>>> Just ignore the remote possibility of short 32-bit hash prefix collisions
>>> (possible, but infrequent): the way to resolve that is when a hash lookup
>>> fails, to look it up in a translation index of former hg hashes.
>>> practical. good enough.
>> Yes, collision is not the problem, it's that you can't distinguish them
>> without a lookup table or something. Which means we have to do more
>> than just change the URL in the existing linkifier, which was my point.
> In the specific case of Roundup, does the linkifier have the "date of
> comment" info available? If so, it could fairly readily assume that
> hashes prior to the cutover date are hg ones, and later ones are for
By looking at the code I don't see it readily available, but it might
be possible to retrieve it somehow.
However I think it's better to keep the linkifier simple and stupid
and just delegate to https://hg.python.org/lookup/ .
> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the python-committers