Thomas Arendsen Hein
0bafe8661c
convert documentation: --config argument with spaces needs quoting.
2008-10-19 15:24:33 +02:00
Thomas Arendsen Hein
e5350e7597
Copy index before parsing to enforce alignment with inline data present.
...
Fixes issue1348 (Bus error in parsers.c) on Solaris/sparc.
2008-10-19 15:08:30 +02:00
Benoit Boissinot
33a3a545ff
merge with crew
2008-10-19 13:00:36 +02:00
Thomas Arendsen Hein
68521aa75e
Fix test-notify output for older diffstat versions.
2008-10-19 12:34:34 +02:00
Benoit Boissinot
980f1548c1
hgweb: nodeids should be aligned in raw changesets
...
If they aren't it breaks hg import --exact
Thanks to Jesper Noehr for noticing it.
2008-10-19 12:23:58 +02:00
Thomas Arendsen Hein
593bff360d
Add util.popen3 fallback, simplify import of Popen3
2008-10-19 12:19:55 +02:00
Thomas Arendsen Hein
b7ce96daba
Fix util.popen2 for Python 2.3
...
1. trigger ImportError early, so fallbacks are activated
2. util.popen2 replaces previous usage of os.popen2, not popen2.popen2
2008-10-19 12:13:25 +02:00
Brendan Cully
428ac5338a
mq: heavy rearrangement of qnew to make it recover reliably from errors.
...
Closes issue1269.
2008-10-18 21:52:22 -07:00
Brendan Cully
c935fe6e01
mq: abort qnew -f if any file in an explicit list cannot be read
2008-10-18 20:45:53 -07:00
Brendan Cully
eeb6237595
mq: make qimport -f work properly. Closes issue1255.
...
From Bernhard Leiner.
2008-10-18 17:29:45 -07:00
Brendan Cully
a52b846f5d
Merge with crew
2008-10-18 16:53:44 -07:00
Brendan Cully
08cb02aa5a
mq: let qimport read patches from URLs
2008-10-18 16:40:01 -07:00
Brendan Cully
cc98fdf26c
mq: do not invoke editor until just before patch creation. Closes issue1346.
2008-10-18 16:33:10 -07:00
Benoit Boissinot
2a624d5e3d
merge with crew
2008-10-19 01:29:57 +02:00
Benoit Boissinot
27bcc719e6
add a missing +x to test-inotify-lookup
2008-10-19 01:28:35 +02:00
Benoit Boissinot
1abf8f679b
index parser: fix refcounting in case of errors, refactor
...
due to incorrect refcounting, on a bad revlog it was failing with:
*** glibc detected *** /usr/bin/python: corrupted double-linked list: 0x0816d318 ***
and a backtrace.
2008-10-19 01:26:46 +02:00
Patrick Mezard
907514d367
patch: pass linereader to binaryhunk.extract() instead of wrapped fp
...
It unifies input patch file access methods
2008-10-18 23:45:46 +02:00
Patrick Mezard
7e769ebcae
patch: pass linereader to scangitpatch(), extract from iterhunks()
...
It's good because it unifies the patch file access methods.
2008-10-18 23:45:46 +02:00
Patrick Mezard
92038e51fa
patch: change functions definition order for readability
2008-10-18 23:45:45 +02:00
Patrick Mezard
3eb6564f0f
patch: map changed files to patchmeta directly
2008-10-18 23:45:45 +02:00
Patrick Mezard
caa00c7b41
patch: patchmeta gives (islink, isexec) tuple instead of int mode
2008-10-18 23:45:45 +02:00
Patrick Mezard
5924883bb6
patch: extract and rename gitpatch into patchmeta, document
2008-10-18 23:45:45 +02:00
Patrick Mezard
d76f01041c
patch: remove applydiff() useless updatedir and rejmerge arguments
2008-10-18 23:45:45 +02:00
Benoit Boissinot
56d9a3258b
merge with crew
2008-10-18 23:20:23 +02:00
Benoit Boissinot
3babcafb3e
inotify: fix status not showing "clean" files (issue907)
...
The inotify server uses 'c' for clean, not 'n'.
2008-10-18 23:06:29 +02:00
Benoit Boissinot
624e32832b
run-tests.py: report missing file as an error
2008-10-18 22:44:01 +02:00
Brendan Cully
cc3761c2b3
Merge with crew
2008-10-18 13:22:46 -07:00
Brendan Cully
203e3723e8
Prevent import over an applied patch (closes issue795)
2008-10-18 13:22:29 -07:00
Brendan Cully
44b5949ce4
_listdir only uses dfd if AT_SYMLINK_NOFOLLOW is defined
2008-10-18 11:43:45 -07:00
John Mulligan
636223becf
issue 1144: prevent traceback on verify of bundles
2008-10-18 14:43:14 -04:00
Benoit Boissinot
5cedefbd2a
merge with crew
2008-10-18 21:11:44 +02:00
Benoit Boissinot
44d89759ff
run-tests.py: use --prefix instead of --home
...
Some SUSE version don't like --home, they fail with:
"error: must supply either home or prefix/exec-prefix -- not both"
this is due to SUSE shipping a distutils.cfg conflicting with --home.
2008-10-18 21:08:44 +02:00
Patrick Mezard
45970973da
util: handle EINVAL in _statfiles_clustered()
...
Raised when osutil.listdir is called on a non-directory entry.
2008-10-18 20:50:08 +02:00
Benoit Boissinot
4e105a6d69
test-permission: put sane permissions at the end of the test
...
If we don't do that, we won't delete all directories at the end of the test
2008-10-18 20:47:47 +02:00
Benoit Boissinot
d3445ca0d4
merge with crew
2008-10-18 20:39:08 +02:00
Benoit Boissinot
3ef88afae1
fix issue with strip() for revlog with non-monotonic linkrevs (issue1342)
...
extra nodes should always be included, do the call after the pruning
2008-10-18 20:25:45 +02:00
Benoit Boissinot
6de97a000b
revlog parser: use ntohl() instead of ntohll() (fix endianness issues)
2008-10-18 20:23:46 +02:00
Dirkjan Ochtman
1830efd60d
tests: fix output for test-notify
2008-10-18 18:24:37 +02:00
Alexander Solovyov
ab302e7705
commands: optional options where possible
...
This makes life a lot easier on API users.
2008-10-18 18:05:56 +02:00
Stefano Tortarolo
7658d9947c
rebase: disable rollback after rebasing
2008-10-18 17:00:28 +02:00
Martin Geisler
657a408af8
churn: corrected help output
2008-10-18 16:51:26 +02:00
Dirkjan Ochtman
371218cc63
get rid of semi-colon introduced in 89c0afc2016a
2008-10-18 16:30:50 +02:00
Dirkjan Ochtman
c5e3760e1d
help: better documentation intro for a few extensions
2008-10-18 16:56:39 +02:00
Matt Mackall
d06459495e
rename: handle renaming to a target marked removed
2008-10-18 04:26:09 -05:00
Christian Ebert
5cbc9e210a
highlight: convert text to local before passing to pygmentize (issue1341)
...
Example case:
Display file written in iso-8859-1 with current HGENCODING utf-8.
At the moment only an Error page appears because pygmentize
chokes on the replacement chars.
Alternatives:
1) Turn off highlighting and avoid UnicodeDecodeError
for files that are not in HGENCODING.
2) [this patch] use util.tolocal to display these files.
Alternative 2) seems ok, as this only concerns display and
readability.
See also: c5f1a58b8b9a, apparently put aside during refactor of
highlight.
Add test for UnicodeDecodeError with iso-8859-1 file contents.
2008-10-17 12:12:33 +02:00
Matt Mackall
4eb3a715b4
dirstate: always add times to map as integers
...
Fix bug spotted by Dov Feldstern
2008-10-18 04:26:06 -05:00
Patrick Mezard
3eb95e081f
convert: properly encode subversion URLs (issue 1224)
2008-10-10 11:36:02 +02:00
Patrick Mezard
0107794fd2
convert: tolerate embedded spaces in filemap source revisions
2008-10-10 11:32:38 +02:00
Petr Kodl
681e2c1a41
Take advantage of fstat calls clustering per directory if OS support it.
...
util module implements two versions of statfiles function
_statfiles calls lstat per file
_statfiles_clustered takes advantage of optimizations in osutil.c, stats all
files in directory at once when new directory is hit and caches the results
util.statfiles dispatches to appropriate version during module loading
The speedup on directory tree with 2k directories and 63k files is about
factor of 1.8 (1.3s -> 0.8s for hg diff - hg startup overhead about .2s)
At this point only Win32 now benefit from this patch.
Rest of OSes use the non clustered implementation.
2008-10-09 10:29:47 -04:00
Christian Ebert
3ecc265292
Document email.charsets in hgrc.5
...
hgrc.5.ja.txt probably should include an example like:
[email]
charsets = iso-8859-1, iso-8859-15, windows-1252, iso-8859-2,
windows-1250, iso-2022-jp, iso-2022-jp-ms
2008-10-16 17:08:46 +02:00