[python-committers] We will be moving to GitHub (hopefully) in 2016
ezio.melotti at gmail.com
Tue Jan 5 00:07:33 EST 2016
The linkifier converts old svn revision numbers to links to e.g.
https://hg.python.org/lookup/r12345 , and this figures out the
equivalent hg changeset and redirects to the corresponding hg.p.o
The linkifier should just create links to
https://hg.python.org/lookup/csid and let the page figure out if the
csid is from hg or git and redirect where more appropriate.
On Tue, Jan 5, 2016 at 3:37 AM, Alex Gaynor <alex.gaynor at gmail.com> wrote:
> Probably the easiest thing is to point the linkifier at our own webservice
> that just does:
> if hash not in cache:
> except requests.error:
> except request.error:
> return 404
> cache[hash] = hg.python.org
> cache[hash] = github
> return cache[hash]
> I'll send you my consulting bill :-)
> On Mon, Jan 4, 2016 at 8:33 PM, R. David Murray <rdmurray at bitdance.com>
>> On Tue, 05 Jan 2016 01:26:58 +0000, "Gregory P. Smith" <greg at krypto.org>
>> > On Mon, Jan 4, 2016 at 12:34 PM R. David Murray <rdmurray at 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.
>> python-committers mailing list
>> python-committers at python.org
> "I disapprove of what you say, but I will defend to the death your right to
> say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
> "The people's good is the highest law." -- Cicero
> GPG Key fingerprint: 125F 5C67 DFE9 4084
> python-committers mailing list
> python-committers at python.org
More information about the python-committers