Commit Graph

383 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
730a790e89 Corrected tests for commit now consistently stripping last newline. 2006-05-17 19:59:15 +02:00
Thomas Arendsen Hein
17b5742156 Corrected test for date in output of 'hg export'. 2006-05-17 19:58:22 +02:00
Vadim Gelfer
bbb33944e9 add --config global option. allows to set hgrc option on command line.
syntax: --config section.name=value

also add new test-globalopts to test all global options in one place.
2006-05-15 11:16:32 -07:00
Vadim Gelfer
882aea035d merge with crew. 2006-05-15 09:27:27 -07:00
Vadim Gelfer
e5df462a15 deprecate 'update -m'. use 'merge' instead. 2006-05-14 21:07:34 -07:00
Alexis S. L. Carvalho
5ceb7770c1 add test for revlog.parseindex 2006-05-14 18:37:50 -03:00
Benoit Boissinot
8a3548f72d tests for bundles and bundlerepo 2006-05-12 18:39:37 +02:00
Vadim Gelfer
cd6ded15df revert: fix corner case found by faheem mitha.
if file not in dest manifest, remove only if in source manifest.
2006-05-11 22:10:47 -07:00
Vadim Gelfer
c278e6a6c4 merge with crew. 2006-05-11 14:46:24 -07:00
Vadim Gelfer
5c38728103 fix coding style of backout editor change. 2006-05-11 14:41:52 -07:00
Vadim Gelfer
1f1118a083 hooks: add preupdate and update hooks.
preupdate run before working dir updated. can prevent update.
update run after working dir updated.
2006-05-11 10:14:48 -07:00
Benoit Boissinot
8c5a16ed05 add tests for incoming and outgoing 2006-05-11 16:19:44 +02:00
Benoit Boissinot
fa32bf3c8d catch KeyboardInterrupt in run-tests 2006-05-11 14:06:18 +02:00
Vadim Gelfer
c440466a54 fix diffs containing embedded "\r".
add test to make sure fix stays fixed.
2006-05-10 10:31:54 -07:00
Vadim Gelfer
c9bc017f74 run-tests.py: fix handling of newlines.
old code could not handle embedded "\r" or files that ended without newline.
2006-05-10 10:31:22 -07:00
Vadim Gelfer
21204c6bb3 run-tests.py: print diff if reference output not existing. 2006-05-10 10:07:53 -07:00
Vadim Gelfer
79f11ff2dd hide deprecated undo command by making it an alias for debugundo. 2006-05-09 20:56:13 -07:00
Vadim Gelfer
daf27b2d40 merge with mainline. 2006-05-08 14:20:37 -07:00
Vadim Gelfer
c0d2c42c9f deprecate undo command, replace with rollback command. 2006-05-08 14:19:05 -07:00
Vadim Gelfer
0401f2bd35 fix test-help output. 2006-05-08 14:18:19 -07:00
Matt Mackall
350d21b04e Update tests for revlogng 2006-05-08 14:32:43 -05:00
Vadim Gelfer
41eb4e2c6e reverse sense of return value from python hooks.
old scheme (False/None/0/'' == fail) made coding style
unnatural, did not allow use of mercurial commands as hooks.

new scheme (False/None/0 == pass) is pythonic, does not require peculiar
"return True" at ends of hooks, allows hooks like this:

[hooks]
# update working dir after push into this repo
changegroup.update = python:mercurial.commands.update
2006-05-08 10:59:58 -07:00
Thomas Arendsen Hein
9be2b594a2 Fixed tests for changed help output 2006-05-06 16:43:16 +02:00
Vadim Gelfer
9522c700f4 revert: remove word "modified" from description. 2006-05-05 11:07:29 -07:00
Vadim Gelfer
89c7098b13 make test-confused-revert check working dir with two parents. 2006-05-05 10:45:08 -07:00
Vadim Gelfer
e1962a5447 run-tests.py must print changed test output no matter what exit code is. 2006-05-05 10:41:38 -07:00
Stephen Darnell
fb04fe7b4b Delete the shell version of run-tests
Use the python version instead
2006-05-04 15:47:18 -07:00
Vadim Gelfer
9c9dc84168 update test-help.out after fixing revert docs. 2006-05-04 15:25:24 -07:00
TK Soh
c82e4c7ed7 tests: support older version of bunzip2 and, possibly, gunzip too 2006-05-03 11:25:36 +02:00
TK Soh
fbc7092173 tests: fix compatibility on Solaris 2006-05-03 11:25:25 +02:00
Thomas Arendsen Hein
dc3e204fa1 Add debugaddremove alias to addremove, so it doesn't show up in 'hg help'.
Add an explicit description of 'hg commit --addremove'.
2006-05-03 10:53:51 +02:00
Thomas Arendsen Hein
6db6f6dbbc Always clean the build directory before installing for running the tests.
Otherwise tests might run an old version, when e.g. commands.py.orig is
moved back after a revert (old timestamp).
2006-05-03 10:45:20 +02:00
Thomas Arendsen Hein
26b0a124c3 Corrected test output for deprecated addremove command. 2006-05-03 10:18:52 +02:00
Vadim Gelfer
6e0d4ab1da deprecate addremove command. 2006-05-02 21:50:53 -07:00
Vadim Gelfer
fe13882a8a make test-remove check some more cases. 2006-05-02 21:45:53 -07:00
Thomas Arendsen Hein
46d0753ec7 Make hg update more verbose by default (issue12)
(including small changes to revert and backout to not show these stats
 with the exception of backout --merge)

Show update stats (unless -q), e.g.:
K files updated, L files merged, M files removed, N files unresolved

Inform the user what to do after a merge:
(branch merge, don't forget to commit)

Inform the user what to do if a branch merge failed:
There are unresolved merges, you can redo the full merge using:
  hg update -C X
  hg merge Y

Inform the user what to do if a working directory merge failed:
There are unresolved merges with locally modified files.
2006-05-02 18:44:02 +02:00
Thomas Arendsen Hein
cdfafa43cf Applied $PWD fix (changeset bf1fa3097e92) to tests/test-hook, too. 2006-04-30 19:30:59 +02:00
Sascha Wilde
4877d2aad6 SunOS fix: Replaced $PWD with pwd
under certain conditioins $PWD isn't up to date,
observed on SunOS 5.8
2006-04-30 19:29:57 +02:00
Vadim Gelfer
1975d41da8 add backout command.
command undoes effect of an earlier commit, commits new changeset
as result.
2006-04-29 20:56:46 -07:00
Vadim Gelfer
f04cb6342b make test-revert check executable bit. 2006-04-29 20:39:28 -07:00
Vadim Gelfer
3459035f6b merge with crew. 2006-04-28 15:50:56 -07:00
Vadim Gelfer
2607813e53 support hooks written in python.
to write hook in python, create module with hook function inside.
make sure mercurial can import module (put it in $PYTHONPATH or load it
as extension).  hook function should look like this:

def myhook(ui, repo, hooktype, **kwargs):
   if hook_passes:
      return True
   elif hook_explicitly_fails:
      return False
   elif some_other_failure:
      import util
      raise util.Abort('helpful failure message')
   else:
      return
      # implicit return of None makes hook fail!

then in .hgrc, add hook with "python:" prefix:

[hooks]
commit = python:mymodule.myhook
2006-04-28 15:50:22 -07:00
Thomas Arendsen Hein
cc2267150a Show repo's revlog format on verify only if it doesn't match the default format.
This makes it easier to run the tests with different revlog formats.
2006-04-28 21:52:08 +02:00
Vadim Gelfer
edbe962e76 merge with crew. 2006-04-27 22:10:45 -07:00
Vadim Gelfer
e92eac82af run-tests.py: remove trailing white space 2006-04-27 22:01:57 -07:00
Vadim Gelfer
d35c28164f make indentation of coverage code in run-tests.py nicer. 2006-04-27 22:01:28 -07:00
Stephen Darnell
4c0fdc2a17 Add code coverage to the python version of run-tests (inc. annotation)
Also include a minor work-around to coverage.py to avoid errors about /<string>
2006-04-27 21:59:44 -07:00
Thomas Arendsen Hein
f48347c44f Show repo's revlog format on verify. Warn if some files use a different format. 2006-04-27 21:58:47 +02:00
Thomas Arendsen Hein
995ddadce4 Make the deprecated forget an alias of debugforget.
This way it doesn't show up in the non-debug help.
2006-04-27 13:11:23 +02:00
Thomas Arendsen Hein
6274feab61 Fixed test output for not using the deprecated 'hg forget'. 2006-04-27 13:05:02 +02:00