Commit Graph

6386 Commits

Author SHA1 Message Date
Patrick Mezard
a01f6bda6d Merge with crew-stable 2008-03-29 17:27:35 +01:00
Patrick Mezard
d556aa96d4 test-convert-svn-source: remove redundant tests 2008-03-29 17:16:39 +01:00
Patrick Mezard
664a12a36c convert: allow tags detection to be disabled
Tags calculation becomes more reliable but slower, measurable on frequent
synchronizations.
2008-03-29 17:16:18 +01:00
Patrick Mezard
686a0f8465 convert: follow svn tags history (issue953) 2008-03-29 17:15:45 +01:00
Patrick Mezard
05b7b4915e Add a test for svn tags conversion 2008-03-29 17:15:43 +01:00
Patrick Mezard
f6b95792a5 convert: avoid svn log retrieval process cleanup
With huge history (like kdelibs), the process termination suddenly consumes a
lot of memory (from 700M to 1.3G+). Since the job is done, clean termination is
not required, just exit.
2008-03-29 17:14:53 +01:00
Patrick Mezard
da284c98c8 test-convert-mtn: test directory deletion 2008-03-29 17:14:47 +01:00
Benoit Boissinot
5e3666db4b fix const annotation warning 2008-03-28 19:47:22 +01:00
Dirkjan Ochtman
5e4724ae4e highlight: some small cleanups 2008-03-28 17:31:50 +01:00
Dirkjan Ochtman
ef391be22f hgweb: refactor hgweb code 2008-03-28 19:40:44 +01:00
Dirkjan Ochtman
9c32b06e9a hgweb: separate out utility functions 2008-03-28 19:37:28 +01:00
Matt Mackall
fca88d72ac Added signature for changeset 564441983cb9 2008-03-24 18:05:30 -05:00
Bryan O'Sullivan
c8e33b9c63 Tests for issue 1049 2008-03-24 15:50:58 -07:00
Bryan O'Sullivan
776bc63f5b commit: when committing the results of a merge, it's all or nothing
Previously, it was possible to commit just one file from a merge, which
is essentially always the wrong thing to do.  This fixes issue 1049.
2008-03-24 15:36:56 -07:00
Thomas Arendsen Hein
ae74a1c929 Skip older monotone versions for tests.
test-convert-mtn is known to work with 0.37 and 0.38, but fails with
0.31 (Debian etch). hghave now skips all versions up to 0.31.
2008-03-24 22:49:33 +01:00
Thomas Arendsen Hein
818fb02fb9 run-tests.py: Only one fail message when output changed and error code.
This fixes passing back fail messages mistaken for skip messages when
running with parallel jobs because run_children() only expects one message per
fail.
2008-03-24 22:09:01 +01:00
Alexis S. L. Carvalho
7b6fc87ed3 mq: use repo.changelog.tip() instead of the "tip" tag 2008-03-24 18:07:07 -03:00
Thomas Arendsen Hein
5690af9ff7 Fix missing space in one of the new update messages. 2008-03-24 20:28:13 +01:00
Alexis S. L. Carvalho
e3b08ba721 qclone: do not abort if remote hasn't enabled mq (issue1040) 2008-03-24 16:17:19 -03:00
Dirkjan Ochtman
9731167667 Backed out changeset a3eeb13e3d5c (temporary template compatibility) 2008-03-24 18:18:39 +01:00
Bryan O'Sullivan
548c365ad9 mercurial.el: note new Emacs VC mode support 2008-03-27 12:52:41 -07:00
Bryan O'Sullivan
8a988e392e manifest: improve parsing performance by 8x via a new C extension 2008-03-26 10:12:10 -07:00
Alexis S. L. Carvalho
506e114776 hgweb: add compatibility code for old templates
Up to changeset 6713db859c82, HTTP headers were expected to be embedded
in the "headers" template.  Since that changeset, the content-type is
supposed to be defined as the "mimetype" template in the map file.

This changeset makes sure the old templates still work.
2008-03-24 13:45:01 -03:00
Matt Mackall
5c0b28f679 Merge with crew 2008-03-24 11:12:57 -05:00
Patrick Mezard
91f7424c6f test-convert-mtn: test directory move 2008-03-24 17:02:31 +01:00
Patrick Mezard
d098a6938d convert: record deleted files in monotone source 2008-03-24 17:02:08 +01:00
Dirkjan Ochtman
bddf3af283 hgweb: fix breakage in python < 2.5 introduced in 664786dcb24f 2008-03-24 16:20:15 +01:00
Matt Mackall
fb8b59de16 update: better logic and messages for updates
- complain about attempts to merge with ancestor
- when updating, differentiate between
  - crossing named branches with no local changes (jump)
  - crossing named branches with local changes (complain)
  - nonlinear update on the same named branch, no changes (complain some more)
  - nonlinear update on the same named branch, changes (different complaining)
2008-03-24 10:01:05 -05:00
Alexis S. L. Carvalho
317b2a0fec setup.py: hide compiler error messages while searching for inotify 2008-03-23 21:35:57 -03:00
Patrick Mezard
fe0eb5235b Add a test for monotone conversion 2008-03-23 23:18:20 +01:00
Alexis S. L. Carvalho
47f3b2b751 don't use hasattr in repo.invalidate
hasattr ends up calling __getattr__ which will instantiate the very
attributes we want to remove.
2008-03-23 21:03:24 -03:00
Alexis S. L. Carvalho
4251cf3194 localrepo.commit: grab locks before getting the list of files to commit
Somebody may change the dirstate after we've determined the parents of
the working dir and run repo.status, but before we called wlock().

This should also fix issue997, where backout would change a file without
changing its size and then call repo.commit without passing the list of
files. If this happened in less than one second, we wouldn't detect any
file changes - the in-memory dirstate still has the cached stat data for
that file. Grabbing the wlock early causes the dirstate to be
invalidated and we end up reading the dirstate file again, which has
that file marked for lookup (size == -1).

A better fix would be for backout to give repo.commit the exact list of
files, but that'll require some changes to the revert operation.

A significant user-visible change is that the precommit hook is always
run with both locks grabbed - previously, hg commit would run it before
grabbing any locks, but hg import would run it after grabbing locks.
2008-03-23 21:03:24 -03:00
Alexis S. L. Carvalho
6aca9c0de0 Avoid calling heads() twice on every hg commit.
In an extreme case (merging two revisions with very low revision numbers)
this could be slower than the previous code, but it should be much faster
in the usual cases (parents are near the tip).  It also avoids some races
in some uninteresting cases (e.g. two concurrent hg commits).
2008-03-23 21:03:24 -03:00
Dirkjan Ochtman
056bb10b17 hgweb: better error messages 2008-03-23 23:08:18 +01:00
Patrick Mezard
4c90cade29 Remove unexpected "Alternately" word from tip help. 2008-03-23 22:15:47 +01:00
Thomas Arendsen Hein
702b9172d1 run-tests.py: Allow environment variables to set jobs/timeout/port. 2008-03-23 21:48:38 +01:00
Patrick Mezard
8ad14a4450 convertrepo: make it work with refactored convert extension 2008-03-23 21:41:03 +01:00
Patrick Mezard
9b0e618364 Make tip help more helpful 2008-03-23 21:40:27 +01:00
Patrick Mezard
d458f6f4af test-imerge: test resolve subcommand 2008-03-23 20:37:04 +01:00
Patrick Mezard
e54f2a771f imerge: replace "merge" with "internal:merge" when non-interactive 2008-03-23 20:37:02 +01:00
Patrick Mezard
0c0a818562 hgk: display orphan revisions content (issue 1041) 2008-03-23 18:52:02 +01:00
Patrick Mezard
56154985f7 test-mq-symlinks: skip if symlinks are not supported 2008-03-23 16:07:27 +01:00
Florent Guillaume
a17c5f228a test-notify: make it pass on Mac OS X 10.5 2008-03-23 01:23:03 +01:00
Florent Guillaume
d5f64814b4 test-remove: make tests really pass
Ah, the joys of cross-platform shell scripting...
2008-03-23 01:13:56 +01:00
Florent Guillaume
8a0668790f test-remove: fix for non-gnu find 2008-03-23 01:04:51 +01:00
Florent Guillaume
37434df8b2 test-remove: make it pass on Mac OS X 10.5 2008-03-22 21:13:22 +01:00
Dirkjan Ochtman
a3c9e25c1e tests: add highlight extension tests 2008-03-22 20:16:30 +01:00
Dirkjan Ochtman
5f60a364ae tests: add tests for hgweb to test-keyword 2008-03-22 18:33:10 +01:00
Dirkjan Ochtman
4021d08518 Merge main and crew. 2008-03-22 20:15:30 +01:00
Thomas Arendsen Hein
70e80520fc removed trailing spaces 2008-03-22 20:03:00 +01:00