Dirkjan Ochtman
4de316f884
hgweb: fast path for sending raw files
2008-01-18 19:53:38 +01:00
Dirkjan Ochtman
a854166262
hgweb: just return iterables instead of yielding them
2008-01-18 19:53:38 +01:00
Dirkjan Ochtman
e43716d86a
hgweb: separate out start_response() calling
2008-01-18 19:53:38 +01:00
Dirkjan Ochtman
54b4ea87f1
hgweb: return iterable, add deprecation note
2008-01-18 19:53:38 +01:00
Dirkjan Ochtman
0d71615663
hgweb: remove some legacy code
2008-01-18 19:53:38 +01:00
Michele Cella
0e20a92c0f
adding "prefix" option to "hg serve" (command line and [web] section)
...
allows "hg serve" to serve from a different path than '/' (server root)
2008-01-09 11:15:00 +01:00
Matt Mackall
f277b2676b
hook: redirect stdout to stderr for ssh and http servers
2008-01-11 13:06:38 -06:00
Thomas Arendsen Hein
1566cda979
Don't let ui.username override web.contact (issue900)
...
63beab327d26 introduced using ui.username before web.contact, but this was
never documented and might cause commit accidents.
- Drop web.author (deprecated since 2005)
- Try ui.username or $EMAIL as a fallback to display something useful.
- Update docs for the fallbacks.
2008-01-01 17:07:15 +01:00
Thomas Arendsen Hein
347da85c36
Removed tabs and trailing whitespace in python files
2007-12-29 19:49:48 +01:00
Mirko Friedenhagen
2a87bfec34
server: append to logfiles
2007-12-24 17:21:40 +01:00
Dirkjan Ochtman
e267ed3e21
hgwebdir: refactor inner loop
2007-12-03 19:19:12 +01:00
Dirkjan Ochtman
342d039d4e
hgwebdir: split out templater creation
2007-12-03 18:58:18 +01:00
Dirkjan Ochtman
5cda3f99f4
hgwebdir: split out makeindex function, facilitate test failure diagnosis
2007-12-03 18:40:37 +01:00
Dirkjan Ochtman
2365373281
hgweb: explicitly pass around the templater
2007-12-03 13:30:08 +01:00
Dirkjan Ochtman
031b079856
hgweb: split out templater definition
2007-12-03 12:40:29 +01:00
Dirkjan Ochtman
e2b08400db
separate the wire protocol commands from the user interface commands
2007-12-03 12:27:11 +01:00
Dirkjan Ochtman
8169e83987
hgweb: extract constant to global level
2007-12-03 12:06:21 +01:00
Dirkjan Ochtman
4391298487
hgweb: get rid of some nested functions
2007-12-03 11:58:52 +01:00
Dirkjan Ochtman
b14cdb9ce4
fix some imports; pushing bz2 bundles over http is currently untested
2007-12-03 11:58:29 +01:00
Dirkjan Ochtman
58139af39c
split out hgweb commands into a separate file, move some code around
2007-12-02 23:26:40 +01:00
Patrick Mezard
65e701f1ae
Merge with crew-stable
2007-12-02 19:45:38 +01:00
Patrick Mezard
9421498212
hgwebdir: normalize virtual paths before stripping the separator
...
It is not even clear that virtual paths should be normalized as normal paths at all, we could expect slash to be the natural separator.
2007-12-02 19:39:27 +01:00
Dirkjan Ochtman
857b34f4d7
Fix style nit and add some comments to tests.
2007-12-02 10:12:26 +01:00
Dirkjan Ochtman
a20c52b449
Use SCRIPT_NAME and PATH_INFO instead of REQUEST_URI. This is required by WSGI (fixes issue846).
2007-12-01 19:19:08 +01:00
Dirkjan Ochtman
9851dc942e
CGI compatibility fix for 77bd163fb48d.
2007-12-01 18:26:27 +01:00
Dirkjan Ochtman
eb63af80e4
Less indirection in the WSGI web interface. This simplifies some code, and makes it more compliant with WSGI.
2007-11-30 18:23:18 +01:00
Bryan O'Sullivan
4fa397a600
Drop a bad import that snuck in.
2007-11-28 13:58:31 -08:00
Bryan O'Sullivan
9ae1a2c354
hgweb: fix breaking tests on Python < 2.5
2007-11-28 09:39:17 -08:00
Bryan O'Sullivan
acbe5bb17e
Merge with crew
2007-11-28 08:39:05 -08:00
Bryan O'Sullivan
e19dabc11f
hgweb: return meaningful HTTP status codes instead of nonsense
2007-11-28 08:38:42 -08:00
Patrick Mezard
7d72f53113
hgweb.server: flush log files after every access
2007-11-27 23:55:03 +01:00
Rocco Rutte
49a794484a
hgweb_mod: update unidiff() calls and finish f2af74bd8f86 job
2007-11-03 17:04:42 +01:00
Alexis S. L. Carvalho
ddf41e005d
Merge with crew-stable
2007-09-24 19:14:18 -03:00
Alexis S. L. Carvalho
6cc4435607
hgwebdir: ignore hgrc parse errors while building the index page
...
An error in the .hg/hgrc file from a repository would prevent the
following repos from being shown in the index page.
The IOError handling was unnecessary - it's already handled in
readconfig.
This should fix issue731.
The error in the .hg/hgrc file will still prevent the repo from
being exported with hgweb.
2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
e23adec251
hgweb: don't raise an exception when displying empty repos
...
The nullid node claims it's in the default branch, but the branch dict
is empty. This fixes the main symptom from issue696, but we may want
to set branchtags()['default'] = nullid somewhere for empty repos.
2007-09-24 19:00:11 -03:00
Thomas Arendsen Hein
128a411ed1
merge with crew-stable
2007-09-07 17:54:38 +02:00
Dirkjan Ochtman
a80e1eb528
Prevent WSGI apps from touching sys.stdin by setting ui.interactive to False.
2007-09-07 17:38:52 +02:00
Thomas Arendsen Hein
23916758e6
hgweb: Show date of last change for each file in manifest
2007-08-31 11:18:29 +02:00
Robert Bachmann
ecb337b8cb
Added support for the Atom syndication format
2007-08-30 16:42:17 +02:00
Thomas Arendsen Hein
90d76a6ec9
Enable demandimport only in scripts, not in importable modules (issue605)
...
This way other applications can choose if and when they want this feature,
because it might be problematic if those applications rely on ImportError.
2007-08-18 11:37:08 +02:00
Benoit Boissinot
5c3e74025c
merge with -stable
2007-08-09 01:07:11 +02:00
Benoit Boissinot
25ee8ea56b
unobfuscate part of fec055ae35cc
2007-08-09 01:04:27 +02:00
Benoit Boissinot
258f71b5a3
merge with -stable
2007-08-08 23:00:01 +02:00
Eric Hopper
e7f6d77433
Fix hgwebdir after aaaee74b883fc144cc3472c81c61157bc69374b6 broke it.
2007-08-08 22:47:30 +02:00
Alexis S. L. Carvalho
9107d93d2f
merge with crew-stable
2007-08-06 01:00:10 -03:00
Alexis S. L. Carvalho
ed3d96430e
hgweb: don't use os.path.join to build URL parts
2007-08-05 22:36:39 -03:00
Alexis S. L. Carvalho
cba13b82f6
hgwebdir: change os.sep in the name of repos to "/"
2007-08-05 22:36:39 -03:00
Matt Mackall
cd72dc7f1b
Merge with crew
2007-07-21 16:44:38 -05:00
Matt Mackall
3e13c68628
Use try/finally pattern to cleanup locks and transactions
2007-07-21 16:02:10 -05:00
Thomas Arendsen Hein
d9d3256252
removed trailing whitespace
2007-07-21 10:30:51 +02:00