Commit Graph

4854 Commits

Author SHA1 Message Date
Alexis S. L. Carvalho
b7234419e2 clone: remove "file://" before making the path absolute
This avoids writing bogus paths to .hgrc.  Fixes issue695.
2007-08-27 01:44:35 -03:00
Alexis S. L. Carvalho
73454f8d16 pull -u: if "url#rev" was given, update to rev 2007-08-27 01:44:35 -03:00
Alexis S. L. Carvalho
616367be9a clone: if "url#rev" was given, update to rev 2007-08-27 01:44:35 -03:00
Alexis S. L. Carvalho
88d2731fa8 parseurl: also return the revision after the "#"; add a test 2007-08-27 01:44:35 -03:00
Alexis S. L. Carvalho
1e3fbe3765 pull -r: pass the revisions as the heads argument of findincoming
This can make a hg pull -r faster if the remote repo has many heads,
and fixes an "abort: received changelog group is empty".
2007-08-27 01:44:35 -03:00
Patrick Mezard
e0104ee85f convert: fix /dev/null redirections under Windows 2007-08-26 19:05:19 +02:00
Patrick Mezard
26ffa26890 Test git repository conversion 2007-08-26 15:07:13 +02:00
Patrick Mezard
ce0d9a3c84 hghave: detect git availability 2007-08-26 15:35:57 +02:00
Patrick Mezard
6202bc3003 convert: fix issue702 about GIT_DIR= construct unsupported under Windows. 2007-08-26 14:51:27 +02:00
Brendan Cully
b0c6674f4c convert: gitcmd wrapper for os.popen 2007-07-01 21:09:08 -07:00
Benoit Boissinot
b884c9144e fix test-permissions output 2007-08-24 00:56:08 +02:00
Benoit Boissinot
cfb5e37845 testcase for issue705 (fixed by 739cbeba775b) 2007-08-24 00:52:28 +02:00
Benoit Boissinot
0d54a05da3 merge with -stable 2007-08-24 00:39:16 +02:00
Benoit Boissinot
f71cd2e266 check exec: return fallback in case of error during the check
If there is any error while checking if exec is supported,
we can return fallback.
fix issue705
2007-08-24 00:38:08 +02:00
Brendan Cully
ea30b97aed Do not lose previous tags when adding a tag in raw mode 2007-08-23 12:23:07 -07:00
Matt Mackall
0bcff0f870 match: handle large regexes
Some Python versions don't handle large regexes, so when we hit an
overflow, split our regex in two.
2007-08-19 14:03:56 -05:00
Alexis S. L. Carvalho
11336d4a94 Fix sshrepo.unbundle
We weren't reading all the data sent by the server.  Depending on
the system, the remote hg (actually, the remote python) could send a
"close failed: [Errno 32] Broken pipe", making some tests fail.
2007-08-17 22:43:38 -03:00
Alexis S. L. Carvalho
de2d9c54e8 run-tests.py: pass --install-scripts to setup.py
This avoids possible problems when the user has a ~/.pydistutils.cfg.
Fixes issue638.  Patch provided by Ralf Schmitt.
2007-08-17 22:43:38 -03:00
Peter Meerwald
263e23ecf3 recognize user:password in URLs that include port numbers.
when giving user/pwd in an URL, eg.
hg pull http://user:pwd@host.com:666/hg/something,
hg would still ask for user/pwd in interactive mode (or fail in
non-interactive)
2007-08-17 22:43:38 -03:00
Benoit Boissinot
c012edc900 clone: do not delete the target if only the update fails 2007-08-17 00:42:22 +02:00
Patrick Mezard
c0f833cdb2 Merge with hg-stable 2007-08-16 08:19:15 +02:00
Brendan Cully
ac725f5988 mq: truncate patch just before rewriting header 2007-08-15 16:20:10 -07:00
Matt Mackall
8f44013035 test-grep: use lowercase hg command 2007-08-15 15:30:33 -05:00
Patrick Mezard
04cf5bb0f5 test-grep: test issue 685 2007-08-15 16:18:40 +02:00
Patrick Mezard
498ca5601a Fix issue 685: trackback in grep -r after rename 2007-08-15 16:09:04 +02:00
Thomas Arendsen Hein
7f36ffc2b5 The >| redirection does not exist in plain sh. 2007-08-02 14:51:49 +02:00
Patrick Mezard
e1556e1cd2 hghave: test hotshot dependencies (debian does not provide profile) 2007-08-14 19:25:49 +02:00
Patrick Mezard
3f797895fa test-profile: fix grep, check hotshot availability 2007-08-14 18:53:45 +02:00
Benoit Boissinot
f25ebf4477 merge with -stable 2007-08-14 17:20:51 +02:00
Patrick Mezard
0e4dfe7a43 Test --time, --profile and --lsprof 2007-08-14 16:27:35 +02:00
Patrick Mezard
38b7c18bab demandimport: ignore resource module, not available under Windows. 2007-08-14 16:03:15 +02:00
Guillaume Chazarain
011bd031bd Return 0 as 'hg bisect reset' is successful 2007-08-14 14:29:36 +02:00
Patrick Mezard
e7663b6ff8 demandimport: ignore pwd and grp.
Both are unavailable under Windows and tarfile detects them via ImportError.
2007-08-13 19:42:52 +02:00
Alexis S. L. Carvalho
664fc9f5dd merge: fix a copy detection bug (issue672)
When merging rev1 and rev2, we want to search for copies that happened
in rev1 but not in rev2 and vice-versa.  We were starting the search at
rev1/rev2 and then going back, stopping as soon as we reached the revno
of the ancestor, but that can miss some cases (see the new
test-issue672).

Now we calculate the revisions that are ancestors of rev1 or rev2 (but
not both) and make sure the search doesn't stop too early.

Simplified test provided by mpm, based on a test case provided by
Edward Lee.
2007-08-12 12:15:10 -03:00
Thomas Arendsen Hein
9c6e25abcf Added test for commands.dispatch (especially 88803a69b24) 2007-08-11 13:34:19 +02:00
Thomas Arendsen Hein
87b480f2bb test-context.py: Don't create second repo instance (fixed since 3300640607e3) 2007-08-11 13:17:24 +02:00
Thomas Arendsen Hein
37a2cd8e7d fancyopts: Copy list arguments in command table before modifying.
Before this, executing
commands.dispatch(['log', '-r', '0'])
commands.dispatch(['log', '-r', 'tip'])
would look like:
hg log -r 0
hg log -r 0 -r tip

Reported by TK Soh, patch by Alexis S. L. Carvalho
2007-08-11 13:07:47 +02:00
Thomas Arendsen Hein
467db29b4a Print less scary message if the system supports symlinks:
"Skipping test-no-symlinks: system supports symbolic links"
instead of
"Skipping test-no-symlinks: unexpected feature: symbolic links"
2007-08-11 12:47:58 +02:00
Thomas Arendsen Hein
5f273063c7 Hide absolute path from test-no-symlinks output.
And add missing eol and remove trailing space which where introduced by the
patches adding this test.
2007-08-11 12:36:04 +02:00
Patrick Mezard
b69056f11a hghave: prefix temporary files with "hg-hghave-" 2007-08-09 23:14:52 +02:00
Patrick Mezard
0bbfa25ca1 test-no-symlinks: rename .bundle into .hg for consistency. 2007-08-09 23:14:50 +02:00
Brendan Cully
127294b50c fix up previous commit for stable 2007-08-09 12:34:25 -07:00
Brendan Cully
38822453d6 Cache extension load failures.
hg commands call extensions.loadall twice, once during dispatch and
once when the repository is instantiated. Without this change, load
caches successful loads, but not unsuccessful, causing errors to be
displayed twice.
2007-08-08 18:04:06 -07:00
Benoit Boissinot
25ee8ea56b unobfuscate part of fec055ae35cc 2007-08-09 01:04:27 +02:00
Patrick Mezard
17afbade48 Test symlink handling on platform not supporting them 2007-08-08 22:47:18 +02:00
Patrick Mezard
d0f548d7df hghave: feature absence can be checked by prefixing with 'no-' 2007-08-08 23:07:39 +02:00
Eric Hopper
e7f6d77433 Fix hgwebdir after aaaee74b883fc144cc3472c81c61157bc69374b6 broke it. 2007-08-08 22:47:30 +02:00
Thomas Arendsen Hein
b9ea9bfdb1 CVS import: Support new-style .cvspass-file format.
Based on an email from Ralf.Leibold at nuance dot com
2007-08-07 15:56:26 +02:00
Thomas Arendsen Hein
001b7980f8 Remove trailing spaces 2007-08-07 10:24:33 +02:00
Thomas Arendsen Hein
502b9e407c Update on pull -u when heads were closed (fixes issue666).
Patch written by Benoit Boissinot.

This should probably be improved in the future to handle long-living
branches, as joining two "other" heads will switch to that new head.
But this is not a new problem, as adding to the "other" head would have
switched to that new head, too.
2007-08-06 20:25:50 +02:00