Commit Graph

1607 Commits

Author SHA1 Message Date
Patrick Mezard
2a688097e7 commands: fix shadowed repo module 2008-03-30 20:18:40 +02: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
da284c98c8 test-convert-mtn: test directory deletion 2008-03-29 17:14:47 +01: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
Thomas Arendsen Hein
5690af9ff7 Fix missing space in one of the new update messages. 2008-03-24 20:28:13 +01: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
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
Patrick Mezard
fe0eb5235b Add a test for monotone conversion 2008-03-23 23:18:20 +01:00
Dirkjan Ochtman
056bb10b17 hgweb: better error messages 2008-03-23 23:08:18 +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
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
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
Matt Mackall
9454e6e5aa update: no -C needed to switch branches without outstanding changes 2008-03-22 13:30:08 -05:00
Patrick Mezard
60bc8be0a8 coverage: deal with symlinked input paths (MacOSX issue)
/tmp is symlinked in MacOSX therefore test scripts as well as python modules
are installed in a symlinked location. coverage.py uses abspath() to normalize
its inputs which fails if these are referencing real paths. Use realpath()
instead.
2008-03-22 19:01:09 +01:00
Patrick Mezard
449fc02367 Make churn an official extension 2008-03-22 18:01:46 +01:00
Dirkjan Ochtman
2778ac21ea improved semantics for remove (issue438)
- Added files are never deleted (only removed with --force).
- Modified files can only be removed with --force.
- With --after, only deleted files are removed.
- With --after --force, all files are removed but not deleted.
2008-03-22 10:07:49 +01:00
Matt Mackall
a3c45346bb test: fix mixing exec bit on test-hgwebdirsym 2008-03-21 17:22:47 -05:00
Matt Mackall
16115cc42c tests: make test-rebuildstate repeatable 2008-03-21 15:57:22 -05:00
Matt Mackall
f9e70fb40e tests: teach -i about fails list 2008-03-21 15:57:22 -05:00
Matt Mackall
647da75fbe tests: make test-convertcvs repeatable 2008-03-21 15:57:22 -05:00
Eric Hopper
c1929a9601 test: Add tests for webdir symlinks and walkrepos. 2008-03-21 08:46:15 -07:00
Matt Mackall
dc1cdafff7 mq: warn when applying a patch to somewhere other than tip 2008-03-21 15:44:11 -05:00
Adrian Buehlmann
153675561e clone: print "updating working directory" status message
With this change, "hg clone" looks like this:

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX files
updating working directory
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved

So the user sees

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX files
updating working directory

while Mercurial is writing to disk to populate the working directory

With this change, "hg clone" looks like this:

% hg clone big big-work
updating working directory
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
2008-03-21 14:52:24 +01:00
Dirkjan Ochtman
c9f3b5991c give better error message on non-existent mapfile (issue813) 2008-03-21 12:05:01 +01:00
Dirkjan Ochtman
3e3b0d62eb warn about new heads on commit (issue842) 2008-03-21 11:06:02 +01:00
Dirkjan Ochtman
d049a05886 hgweb: only accept POST requests for unbundle 2008-03-21 00:55:53 +01:00
Dirkjan Ochtman
187ae17c7e fix test-serve breakage for other hostnames 2008-03-20 22:58:53 +01:00
Matt Mackall
cbb0bb78a6 tests: fix repeatability for test-filebranch with dirstate granularity 2008-03-20 15:59:54 -05:00
Matt Mackall
49e96f2d3e tests: remove some unnecessary sleeps 2008-03-20 14:14:15 -05:00
Matt Mackall
c517f4bb58 dirstate: refactor granularity code, add a test
- rename option dirstate.granularity
- move option reading into .write()
- add a simple test
2008-03-20 13:53:59 -05:00
Alexis S. L. Carvalho
d40b29d203 dirstate: ignore stat data for files that were updated too recently
This should fix the race where

  hg commit foo
  <change foo without changing its size>

happens in the same second and status is fooled into thinking foo
is clean.

A configuration item is used to determine the timeout, since different
filesystems may have different requirements (I think VFAT needs 3s,
while most Unix filesystems are fine with 1s).
2008-03-19 17:55:21 -03:00
John Coomes
7b1227d192 tag: allow multiple tags to be added or removed
- Example:  "hg tag -r 42 build-25 beta-1" will add tags build-25 and beta-1
  for rev 42.
- The deprecated and undocumented usage "hg tag arg1 arg2" used to emit a
  warning, then add tag arg1 for rev arg2 (equivalent to "hg tag -r arg2 arg1").
  It will now add tags arg1 and arg2 for the current revision.
- If one tag triggers an error, no tags are added/removed (all or nothing).
2008-03-14 15:38:56 -07:00
Giorgos Keramidas
3831b4f59e tests: update test-command-template for the new {isodatesec} filter 2008-03-17 19:28:46 +02:00
John Mulligan
8c882ea990 Add tests for cloning from a all-history bundle 2008-03-15 12:22:15 -04:00
Matt Mackall
ab757b1627 convert: fix test complaint for mtn bits 2008-03-20 11:12:35 -05:00