Commit Graph

28566 Commits

Author SHA1 Message Date
Pierre-Yves David
d25fcd8b52 revset: stabilize repr of baseset initialized with a set
Cpython and pypy have different way to build and order set, so the result of
list(myset) is different. We work around this by using the sorted version of the
data when displaying a list.

This get pypy closer to pass test-revset.t.
2016-04-04 17:45:15 -07:00
Martijn Pieters
bc2e641437 dispatch: factor out command failure handling into a function
Moving the warning generation to a function allows for wrapping and
alternative error handling.
2016-04-04 17:27:37 +01:00
Maciej Fijalkowski
a294e6bdcf pypy: fix overeager pattern matching on mpatchError
Pypy have difference in error reporting.
2016-04-05 10:59:46 +03:00
timeless
4fca2b2f02 mpatch: unify mpatchError (issue5182)
The pure version was mpatch was throwing struct.error or ValueError
for errors, whereas the C version was throwing an "mpatch.mpatchError".

Introducing an mpatch.mpatchError into pure and using it consistently
is fairly easy, but the actual form for it is mercurial.mpatch.mpatchError,
so with this commit, we change the C implementation to match the naming
convention too.
2016-03-31 02:05:28 +00:00
timeless
52801a4e4b check-code: reject sed ... \\n
This would have caught cfe13eb3c333 (fixed by 34113b609b05)
if repcomment didn't make the content of the perl code
opaque to the check.
2016-03-30 22:01:47 +00:00
Pierre-Yves David
4ceff995cf hideablerevs: expand docstring to warn about possible traps
Sean Farley just wasted multiple hours trying to figure out why his code was
crashing. We update the docstring to make the constraint clearer.
2016-04-02 15:56:47 -07:00
Yuya Nishihara
bd8b8c2e65 hghave: replace relative import of docutils.core 2016-04-03 19:47:29 +09:00
Yuya Nishihara
9f89f6c82a tests: make tinyproxy.py not import sys.argv by name 2016-04-03 20:12:59 +09:00
Yuya Nishihara
a8eec6094d tests: alias ui as uimod in test-walkrepo 2016-04-03 20:13:42 +09:00
Yuya Nishihara
ac80a98b68 tests: alias ui as uimod in test-ui-config 2016-04-03 19:56:59 +09:00
Yuya Nishihara
239bd3cd89 tests: alias ui as uimod in test-context 2016-04-03 19:52:13 +09:00
Yuya Nishihara
59a0fa579d tests: alias ui as uimod in test-ancestor 2016-04-03 19:48:47 +09:00
Yuya Nishihara
a135a6b1fd tests: sort import lines in tinyproxy.py 2016-04-03 20:11:41 +09:00
Yuya Nishihara
a5f2f29d0a tests: sort import lines in failfilemerge.py 2016-04-03 19:41:00 +09:00
Yuya Nishihara
91097a429b tests: sort import lines in dumbhttp.py
This series is an attempt to enable import-checker.py for tests/**.py, but
it turned out not easy. Since many tests have been ported to absolute_import
without the coverage, import-checker.py reports a lot of errors right now.

Should we enable import-checker.py without fixing all of them so that we
won't get more errors?
2016-04-03 19:40:05 +09:00
Jun Wu
c59ce363ab chgserver: change random state after fork
Before this patch, extensions expecting a different random state per command
will break since the chg request handler will inherit a same random state
from the parent daemon process.

This patch addresses the issue by calling random.seed() after fork.
2016-04-04 01:59:57 +01:00
Jun Wu
9c2bea1fcf chg: make connect debug message less repetitive
Before this patch, "connect to" debug message is printed repeatedly because
a previous patch changed how the chg client decides the server is ready to be
connected.

This patch revises the places we print connect debug messages so they are less
repetitive without losing useful information.
2016-04-04 02:36:05 +01:00
Jun Wu
abecf92520 chgserver: use relative path at socket.bind
Before this patch, if the server address is long, the server will fail to
listen and throw the error:

  socket.error: AF_UNIX path too long

It is because AF_UNIX path usually has a very short length limit (107 chars on
common platforms, see sys/un.h).

This patch addresses the issue by using relative path instead. Therefore the
directory length does not matter. It helps run tests with chg using a long
$TMPDIR.
2016-04-04 03:17:59 +01:00
Jun Wu
c99168df8c chgserver: move args copying logic to the correct place
A previous patch moved it to an incorrect place. Since dispatch._earlygetopt
has side effects on args, we need to move it to the place before _earlygetopt.
2016-04-04 01:10:51 +01:00
Robert Stanca
d5c8907a91 py3: use print_function in test-status-inprocess.py 2016-04-04 05:20:40 +03:00
Robert Stanca
b652d5efc0 py3: use absolute_import in test-status-inprocess.py 2016-04-04 05:19:35 +03:00
Robert Stanca
ec43026736 py3: use print_function in test-revlog-ancestry.py 2016-04-04 05:10:11 +03:00
Robert Stanca
a5acb646f6 py3: use absolute_import in test-revlog-ancestry.py 2016-04-04 05:09:24 +03:00
Robert Stanca
09fc340580 py3: use print_function in test-propertycache.py 2016-04-04 04:56:05 +03:00
timeless
f5cd960a9a hghave: add hg06..hg39
hg output varies by version, this helps the hgbook

hg 0.6 did not have a version command, so special case it...
hg 0.7-0.8 had a version command which returned unknown...
hg 0.8 added a --date flag to annotate
hg 0.9 had a working version command!
2016-04-01 13:20:47 +00:00
timeless
6d4cf8d156 hghave: use checkvers for bzr114 2016-04-01 13:19:29 +00:00
timeless
620c0a80fe hghave: replace has_svn13/has_svn15 with checkvers
This would make it possible to easily add a svn14 or svn16 or...
2016-04-01 13:04:41 +00:00
timeless
048ac3436b hghave: add checkvers function 2016-04-01 13:04:16 +00:00
timeless
054ef1ce74 hghave: add docstring for check 2016-04-04 02:17:36 +00:00
timeless
940756392c hghave: update cvs112 description
Classic cvs stopped at 1.11.
There was a beta version 1.12 that never had a final release.
CVS NT is a fork which starts with versions numbered 2.0+.

We should have an hg have cvsnt, but to test that requires getting
cvsnt, and it's commercial / its older source versions are
hard to find.
2016-04-01 13:19:58 +00:00
Robert Stanca
6fd5d912b0 py3: use absolute_import in test-propertycache.py 2016-04-04 03:16:18 +03:00
Robert Stanca
3aa8a31da8 py3: use print_function in test-parseindex2.py 2016-04-04 03:14:16 +03:00
Robert Stanca
ceb4fa2343 py3: use absolute_import in test-parseindex2.py 2016-04-04 03:06:33 +03:00
Robert Stanca
528a3094ed py3: use print_function in test-minirst.py 2016-04-04 03:04:08 +03:00
Robert Stanca
2e474e497b py3: use absolute_import in test-minirst.py 2016-04-04 03:00:43 +03:00
Robert Stanca
6c104cf6cf py3: use print_function in test-hybridencode.py 2016-04-04 02:58:53 +03:00
Robert Stanca
f22cc3112f py3: use absolute_import in test-hybridencode.py 2016-04-04 01:33:08 +03:00
Robert Stanca
fdf4685725 py3: use print_function in test-hgweb-auth.py 2016-04-04 01:31:21 +03:00
Robert Stanca
f4b616ccd9 py3: use absolute_import in test-hgweb-auth.py 2016-04-04 00:55:36 +03:00
Robert Stanca
cf5e54b0da py3: use print_function in test-hg-parseurl.py 2016-04-04 00:29:03 +03:00
Robert Stanca
9781192919 py3: use absolute_import in test-hg-parseurl.py 2016-04-04 00:27:04 +03:00
Robert Stanca
00572a2f9d py3: use print_function in test-filelog.py 2016-04-04 00:17:11 +03:00
Robert Stanca
46a8931c72 py3: use absolute_import in test-filelog.py 2016-04-03 17:10:12 +03:00
Robert Stanca
156e21e68a py3: use print_function in test-filecache.py 2016-04-03 17:06:40 +03:00
Robert Stanca
6efe830746 py3: use absolute_import in test-filecache.py 2016-04-03 17:01:07 +03:00
Robert Stanca
40e6626cfd py3: use print_function in test-duplicateoptions.py 2016-04-03 16:58:43 +03:00
Robert Stanca
fded95215a py3: use absolute_import in test-duplicateoptions.py 2016-04-03 16:56:15 +03:00
Robert Stanca
8680733411 py3: lexicographical order imports and print_function in test-context.py 2016-04-03 16:34:55 +03:00
Maciej Fijalkowski
44a4e8de4b pypy: fix overspecific test checks
Those tests check a bit too specific message in ImportError/SyntaxError.
Make test-hook and test-bad-extension pass on pypy
2016-04-03 08:26:57 +01:00
Robert Stanca
9cba521c9e tests: lexicographical imports in silenttestrunner.py 2016-04-03 10:02:58 +03:00