large repository access
Simon King
simon at simonking.org.uk
Mon Oct 14 13:14:54 UTC 2013
On Mon, Oct 14, 2013 at 11:03 AM, Kastner Masilko, Friedrich
<kastner-masilko at at.festo.com> wrote:
>> From: Franklin Siler [mailto:fsiler at gmail.com]
>>
>> I'm afraid that "hg serve" crashes without leaving anything in the
>> error log or on the console when trying to access files with this
>> method, even with "-vvv" added. Also, WEBDAV doesn't work against it;
>> the HTTP OPTIONS command isn't supported. I suppose the latter might
>> be easy to patch, but a bit more introspection about the crash is
>> necessary before I can do much about it.
>
> Indeed the crash needs more introspection. I can't reproduce a crash here with TortoiseHg 2.9.1 (Mercurial-2.7.1, Python-2.7.3) installation.
> "hg serve --port 8000 --debug" shows this log on a repository with picture content and a Firefox browser access of first the file browsing and then directly the raw content via "http://localhost:8000/raw-file/fdf0fe58b8a1/Product/Project/Resources/Product_failed_16x16.png":
> listening at http://host.company.net:8000/ (bound to *:8000)
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /file/fdf0fe58b8a1/Product/Project/Resources/Product_failed_16x16.png HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /static/style-coal.css HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /static/mercurial.js HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /highlightcss HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /static/hgicon.png HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /static/hglogo.png HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:16] "GET /static/background.png HTTP/1.1" 304 -
> 127.0.0.1 - - [14/Oct/2013 11:53:21] "GET /raw-file/fdf0fe58b8a1/Product/Project/Resources/Product_failed_16x16.png HTTP/1.1" 200 -
>
> Could perhaps the file-size be the reason for the crash?
>
> I'm not sure how easy it would be to get WEBDAV support patched-in, though.
>
> regards,
> Fritz
>
Not really answering your immediate question, but did you know that
you can retrieve a file at a particular revision using "hg cat"?
http://selenic.com/hg/help/cat
There's also https://code.google.com/p/hgfs/ which would seem to be
similar to what you were asking about in your initial mail, although
it doesn't look very active.
Hope that helps,
Simon
More information about the Mercurial
mailing list