octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SourceForge migration has broken HTTP access to some hg repos


From: Mike Miller
Subject: Re: SourceForge migration has broken HTTP access to some hg repos
Date: Tue, 20 Feb 2018 12:42:46 -0800
User-agent: Mutt/1.9.3 (2018-01-21)

On Tue, Feb 20, 2018 at 10:58:21 -0800, Mike Miller wrote:
> I am unable to pull hg changes from 3 of the Octave Forge mercurial
> source repositories over HTTP. I *am* able to pull over SSH. I think
> it's likely that the repositories are fine, but something is wrong with
> the HTTP hosting of hgweb, probably having to do with the recent
> migration.

Looking into this a little deeper, the problem only affects hg
repositories that have bookmarks. These are the 4 repositories geometry,
image, signal, and statistics.

I don't know much about hg internals, but I do know how to trace HTTP
transactions. The hg pull issues a few GET commands, and this sequence
is getting weird results back from the SourceForge server. Using curl to
mimic what hg is doing:

    $ curl -H "vary: X-HgArg-1" -H "X-HgArg-1: namespace=bookmarks" 
"http://hg.code.sf.net/p/octave/signal/?cmd=listkeys";
    @   46ba861187455a5414bd15d671664dd210b27e09

    $ curl -H "vary: X-HgArg-1" -H "X-HgArg-1: namespace=phases" 
"http://hg.code.sf.net/p/octave/signal/?cmd=listkeys";
    @   46ba861187455a5414bd15d671664dd210b27e09

    $ curl -H "vary: X-HgArg-1" -H "X-HgArg-1: namespace=phases" 
"http://hg.code.sf.net/p/octave/signal/?cmd=listkeys";
    publishing  True

Notice that the last two commands are identical, but the second call
returns a different (correct) value. Maybe there is some server-side
caching going on here.

-- 
mike

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]