Patrick Mezard
e7dc152912
Merge with crew-stable
2007-12-02 14:06:10 +01:00
Patrick Mezard
4bd17cf5de
mq: missing target files do not make qpush to fail immediately (issue 835)
...
Reported and explained by Peter Arrenbrecht <peter.arrenbrecht@gmail.com>.
Following file additions were skipped but empty files were still created. This situation could lead to qrefresh losing patch information.
2007-12-02 13:53:29 +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
2aa00c9c81
Add tests for hgwebdir repository names with slashes in them.
2007-12-01 19:10:00 +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
43a520697c
hgweb: account for Python 2.4 in one test
2007-11-28 11:54:39 -06: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
Bryan O'Sullivan
53b644c083
hgweb: make notfound templates more informative
2007-11-28 08:38:06 -08:00
Bryan O'Sullivan
adfac2beda
hgweb: flesh out raw templates
2007-11-28 08:37:33 -08:00
Bryan O'Sullivan
d32d6fb57f
make LookupError more detailed
2007-11-28 08:36:55 -08:00
Patrick Mezard
b09b0b3dcf
Merge with crew-stable
2007-11-28 00:11:55 +01:00
Patrick Mezard
7d72f53113
hgweb.server: flush log files after every access
2007-11-27 23:55:03 +01:00
Bryan O'Sullivan
314630c85c
convert: some tidyups, doc improvements, and test fixes
...
The various back end options are now documented.
The hg source can now be configured not to hand out a revision ID.
2007-11-27 09:44:09 -08:00
Bryan O'Sullivan
a364fef5fb
Merge with crew
2007-11-26 17:24:21 -08:00
Bryan O'Sullivan
eff109c7b0
convert: tell the source repository when a rev has been converted
...
This lets us roundtrip changes between svn and hg.
2007-11-26 17:23:20 -08:00
Bryan O'Sullivan
d991d10d66
convert: save hg revision during a convert
...
This breaks hg->hg hash roundtripping, but that was fragile, didn't work
reliably, and hence arguably of little value.
2007-11-26 14:01:31 -08:00
Bryan O'Sullivan
3367073b9e
Merge with mpm.
2007-11-26 12:25:55 -08:00
Patrick Mezard
eeff34ef5f
Merge with crew-stable
2007-11-25 12:42:06 +01:00
Patrick Mezard
f280a41d83
test-import: test fuzziness, ambiguous patch locations
2007-11-25 12:17:30 +01:00
Jim Hague
5ef18ea71f
patch: fix sort() comparator argument
...
'hg import' fails under Python 2.3. The name of the compare function parameter in the call to list.sort() is 'cmpfunc' in Python 2.3 and
'cmp' in Python 2.4+. Passing the compare function as a named parameter is therefore problematic.
2007-11-25 11:49:34 +01:00
Patrick Mezard
cbf322b12c
cmdutil: make "files" list all files, add "file_mods" for modified files
2007-11-24 20:16:59 +01:00
Matt Mackall
21ee8a4e42
Merge with crew
2007-11-24 12:35:02 -06:00
Matt Mackall
93267d50c5
revlog: make revlogv0 loading more robust against corruption
2007-11-24 12:13:32 -06:00
Patrick Mezard
8f3f01adea
cmdutil: always expose "files_add", "files_del" and "manifest" templater properties
2007-11-24 17:56:15 +01:00
Matt Mackall
c1ac09f205
push/pull: abort if we try to visit a missing or empty revlog
2007-11-21 13:26:18 -06:00
Matt Mackall
ad28be7c23
i18n: fix complaints from pygettext
2007-11-20 15:54:25 -06:00
Matt Mackall
a93c9d4d89
verify: improve handling of empty or missing files
...
- explicitly notice empty or missing changeset, manifest or file
revlogs
- shortcircuit warnings relating to missing changeset or manifest
revlogs
- fix changeset/manifest crosscheck swapped variables
- properly sort crosscheck messages
2007-11-20 15:46:20 -06:00
Patrick Mezard
80735bf58c
Merge with crew-stable
2007-11-20 14:41:47 +01:00
Patrick Mezard
8ae803be30
mq: avoid qnew committing everything on invalid paths (issue 803)
...
If paths are supplied but resolve to nothing, localrepo.commit() is called with an empty set and commits the whole dirstate. Avoid this by passing the match function to commit.
2007-11-20 14:31:58 +01:00
Patrick Mezard
a9e1f119ec
convert: read CVS files in chunks (issue 800)
...
socket.makefile() fails on large read requests (more than 10MB) with MemoryError.
2007-11-18 17:25:28 +01:00
Patrick Mezard
808b254fe1
test-convert-svn-sink: test directory additions
2007-11-17 18:41:31 +01:00
Patrick Mezard
930b69add7
convert: add directories to subversion from root to leaves
2007-11-17 18:41:31 +01:00
Patrick Mezard
12b8219be3
convert: force svn:executable when execute-bit is not supported
...
The util.is_exec fallback would be to ask subversion for the current value of svn:executable. Setting it directly is just simpler.
2007-11-11 19:34:00 +01:00
Patrick Mezard
44e6544bec
convert: fix svn file:// URL generation under Windows
2007-11-11 14:17:30 +01:00
Bryan O'Sullivan
e906d6af4e
highlight: clean up coding style a little
2007-11-12 10:49:26 -08:00
Adam Hupp
8fafdc321a
extension for synax highlighting in the hgweb file revision view
...
Depends on the pygments syntax highlighting library:
http://pygments.org/
2007-11-10 17:54:57 -05:00
Patrick Mezard
334286e6e7
Change standard streams mode to binary at hg startup
...
Standard streams are expected to operate in binary mode everywhere, especially with archive, cat, diff and export commands. Rewriting these to separate informational output from binary content is complicated to do and to maintain, nonwithstanding mode switching reliability. Changing all output mode to binary should not have much impact on Windows were stream processing tools are barely used and usually cope with unix style endings.
Streams mode being process wide, the switch is performed in the startup script to avoid polluting existing API users who may have solved this issue already or ignored it at least for the mercurial part.
2007-11-10 21:30:59 +01:00
Patrick Mezard
c182383712
test-import: read email payload in binary mode
2007-11-10 21:30:43 +01:00
Patrick Mezard
d9ba22f633
convert: fix util.popen regression in darcs converter
2007-11-10 17:09:56 +01:00
Alexis S. L. Carvalho
2e160ca8ff
merge with crew-stable
2007-11-09 21:24:25 -02:00
Alexis S. L. Carvalho
0086f97dc7
mq: really remove undo after a qpush (and after a strip)
...
For qpush, removeundo has to be called after the transaction has finished.
strip may use unbundle, which also leaves an undo file.
Fixes issue780.
2007-11-09 20:21:35 -02:00
Alexis S. L. Carvalho
f8788ac266
httprepo: give self._url and the netloc to the password manager
...
This should hide some differences between different python versions.
2007-11-09 20:21:35 -02:00
Matt Mackall
3418169510
clarify rm -A
2007-11-09 10:45:58 -06:00
Steve Borho
ddde53112b
hgweb: make web.name default to repo basename
...
Providing the full path to the repository by default
could be considered a security risk.
2007-11-29 20:47:41 -06:00
Matt Mackall
d3de4f56b7
Merge with crew
2007-11-07 21:13:56 -06:00