Matt Mackall
0a7c1f46a7
localrepo: remove asserts in _afterlock
2011-11-30 16:20:07 -06:00
Matt Mackall
9606772122
localrepo: rename _postrelease to _afterlock
2011-11-30 15:36:55 -06:00
Matt Mackall
5fbe95bf65
addchangegroup: ony queue hooks when we have changesets
2011-11-30 15:33:44 -06:00
Pierre-Yves David
5ac8c7b10a
addchangegroup: remove the lock argument on the addchangegroup methods
...
This argument is no longer require. post lock release code is now handled with
dedicated post release callback code in lock itself.
2011-11-28 01:32:13 +01:00
Pierre-Yves David
3e4593fedf
addchangegroup: use a postrelease callback to call changegroup hook
...
This is will allow addchangegroup to drop lock related code.
2011-11-28 01:18:15 +01:00
Pierre-Yves David
a72322069e
lock: add mechanism to register post release callback
2011-11-28 15:05:26 +01:00
Mads Kiilerich
c4feda7dd3
ssh: quote remote paths (issue2983)
2011-11-26 00:10:31 +01:00
Mads Kiilerich
498fe2dc88
id: add command line options for handling ssh and https urls
2011-11-26 00:10:12 +01:00
Patrick Mezard
a50918f3cf
status: support revsets with --change
2011-11-24 11:38:16 +01:00
Mads Kiilerich
ae8c3f9869
merge with stable
2011-11-25 02:11:12 +01:00
Martin Geisler
b8431ebcdb
largefiles: simplify lfutil.writehash
...
This was unnecessarily verbose: there is no need to unlink the file
when we open it for write anyway, and there is no need to check if the
file exists after we created it.
2011-11-24 18:22:45 +01:00
Martin Geisler
af430ebf31
merge with stable
2011-11-24 18:22:44 +01:00
Mads Kiilerich
210dda88ee
tests: use an alias to make msys 'pwd' return paths with forward slashes
2011-11-21 01:49:20 +01:00
Mads Kiilerich
b2aa8c5ab5
tests: skip cvs tests with msys on windows
...
They will fail with weird 'ssh' errors.
2011-11-21 01:49:20 +01:00
Mads Kiilerich
c9c5f0a2ca
tests: introduce 'hghave msys' to skip tests that would fail because of msys
2011-11-21 01:49:20 +01:00
Matt Mackall
bd2719486e
merge with stable
2011-11-23 16:35:17 -06:00
Mads Kiilerich
1961772a73
mail: use quoted-printable for mime encoding to avoid too long lines (issue3075)
...
Quoted-printable was already used for the more critical patch mails, so it
should be fine for everything else as well.
2011-11-23 02:44:11 +01:00
Mads Kiilerich
ae4bd7a809
notify: add option for writing to mbox
...
This makes it possible to test how the mails that are sent _really_ look like.
2011-11-23 02:36:33 +01:00
Mads Kiilerich
c30004d07d
mail: mbox handling as a part of mail handling, refactored from patchbomb
2011-11-23 02:11:24 +01:00
Mads Kiilerich
6127ae9b6d
patchbomb: minor refactoring of mbox functionality, preparing for move
...
This allows reuse of the mbox functionality but causes minor changes in the
patchbomb console output when writing to a mbox.
2011-11-23 02:09:38 +01:00
Mads Kiilerich
1815af81fb
tests: run check-code with warnings and maintain a whitelist
...
check-code has fine warning checks, but they are a bit noisy and nobody used
them.
Now the warnings will be run in the test suite, where a list of accepted
warnings will be maintained.
Those who introduce or touch a line with a warning will now have to update the
whitelist ... or fix the warning.
2011-11-23 03:14:24 +01:00
Mads Kiilerich
d3deba7af8
tests: convert test-check-code-hg.py to .t
2011-11-23 02:50:58 +01:00
Christian Ebert
b72bed62b1
test-keyword: use inline doctest syntax
2011-11-23 01:20:32 +00:00
Matt Mackall
5bbf1ec751
merge with stable
2011-11-22 17:34:22 -06:00
Martin Geisler
7ea03decd6
merge with stable
2011-11-22 18:16:59 +01:00
Mads Kiilerich
b9221232de
tests: test-patchbomb.t cleanup
...
Let commit messages and file names describe the facts without making incorrect
guess of the actual handling of it.
2011-11-22 01:37:26 +01:00
Mads Kiilerich
ec9ee31267
tests: show actual output in test-patchbomb.t
...
Drop fixheader and decode base64 encoded content and show non-ascii content.
2011-11-22 01:37:26 +01:00
Mads Kiilerich
04220c92b7
tests: test findexe() access check fixed in 82cdeeb526c1
2011-11-22 01:37:26 +01:00
Mads Kiilerich
1cbfae386c
check-code: fix return code initialization
...
Don't crash when nothing is tested, but return failure when other files than
the last one fails.
2011-11-22 01:37:26 +01:00
Matt Mackall
d3ba23d77e
merge with stable
2011-11-21 13:11:17 -06:00
Mads Kiilerich
df6c03ed7a
tests: make test-commandserver.py independent of line ending and slash direction
2011-11-21 00:39:32 +01:00
Mads Kiilerich
a71b0e4d4e
tests: make test-commandserver.py output readable
2011-11-21 00:39:32 +01:00
Mads Kiilerich
dd70310a2a
tests: 'hghave unix-permissions' for test-import.t
...
'hg import' of a patch with mode changes requires unix permissions support in
the file system.
2011-11-21 00:39:32 +01:00
Mads Kiilerich
bd64c64dd6
tests: skip color test on platforms without tic
2011-11-21 00:39:32 +01:00
Matt Mackall
0caacfba55
merge with i18n
2011-11-20 16:07:07 -06:00
Matt Mackall
6c076151bb
merge with stable
2011-11-20 16:06:18 -06:00
Patrick Mezard
c4cef76e25
mdiff: replace wscleanup() regexps with C loops
...
On my system it reduces:
hg annotate -w mercurial/commands.py
from 36s to less than 8s, to be compared with 6.3s when run without whitespace
options.
2011-11-18 14:23:03 +01:00
Patrick Mezard
252fc23b56
mdiff: split lines in allblocks() only when necessary
...
These are only required to handle the --ignore-blank-lines case
2011-11-18 14:16:47 +01:00
Patrick Mezard
cc3315778f
annotate: support diff whitespace filtering flags (issue3030)
...
splitblock() was added to handle blocks returned by bdiff.blocks() which differ
only by blank lines but are not made only of blank lines. I do not know exactly
how it could happen but mdiff.blocks() threshold behaviour makes me think it
can if those blocks are made of very popular lines mixed with popular blank
lines. If it is proven to be wrong, the function can be dropped.
The first implementation made annotate share diff configuration entries. But it
looks like users will user -w/b for annotate but not for diff, on both the
command line and hgweb. Since the latter cannot use command line entries, we
introduce a new [annotate] section duplicating the diff whitespace options.
2011-11-18 12:04:31 +01:00
Pascal Quantin
fe27d67b3c
setup: fix py2exe generation broken by c7ccdf21c98c (issue3116)
...
Py2exe is patching default distutils Distribution class. This patch ensures
that the right one is taken when calling hgdist class.
2011-11-20 19:14:36 +01:00
Patrick Mezard
4772aafb85
mdiff: make diffblocks() return all blocks, matching and changed
...
Annotate uses matching blocks not changed ones.
2011-11-18 12:01:04 +01:00
Patrick Mezard
ddbd229fe3
mdiff: extract blocks whitespace normalization in diffblocks()
...
We want to reuse it in annotate for whitespace normalization.
2011-11-18 11:53:38 +01:00
Matt Mackall
309d28f3f5
merge with crew
2011-11-17 23:02:18 -06:00
Matt Mackall
8ff3689535
setup: backout 4c2574ae2b6b
...
Change wasn't compatible with Python 2.x
2011-11-17 23:01:58 -06:00
Matt Mackall
75db0d196a
merge with stable
2011-11-17 16:53:17 -06:00
Mads Kiilerich
786be21bbb
tests: don't use stdout redirection for test data
...
Stdout redirection is not binary safe everywhere - for example not on windows
with msys.
2011-11-16 03:45:14 +01:00
Mads Kiilerich
637e2ecde2
tests: hide 'No such file or directory' messages
...
Windows will use a different and localized message.
2011-11-16 03:45:14 +01:00
Mads Kiilerich
9c95d62a3d
tests: add missing '(glob)'s to match '\' in paths in test output on windows
2011-11-16 03:45:14 +01:00
Mads Kiilerich
d648884b09
tests: add 'hghave system-sh' to skip tests on windows
2011-11-16 03:45:14 +01:00
Mads Kiilerich
8e24d85037
tests: launch hghave with python interpreter without relying on hash-bang
2011-11-16 03:45:14 +01:00