On 5 January 2016 at 11:33, R. David Murray <rdmur...@bitdance.com> wrote: > On Tue, 05 Jan 2016 01:26:58 +0000, "Gregory P. Smith" <g...@krypto.org> > wrote: >> On Mon, Jan 4, 2016 at 12:34 PM R. David Murray <rdmur...@bitdance.com> >> wrote: >> >> > 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 git. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ python-committers mailing list python-committers@python.org https://mail.python.org/mailman/listinfo/python-committers