Commit Graph

16825 Commits

Author SHA1 Message Date
Martin Geisler
85338c4193 ui: lowercase "not trusting file" warning message 2012-06-12 14:18:18 +02:00
Martin Geisler
d599cd6742 ui: lowercase ConfigError warning message 2012-06-12 14:18:18 +02:00
Martin Geisler
50cde07b26 cmdutil: lowercase finddate status message
This message is output by 'hg revert -d DATE' and 'hg update -d DATE'.
2012-06-12 14:18:18 +02:00
Martin Geisler
1b024d518a bisect: lowercase status message 2012-06-12 14:18:18 +02:00
Martin Geisler
a06bcd028f serve: lowercase "no repo here" message 2012-06-12 14:18:18 +02:00
Martin Geisler
7b0a61680f debuginstall: lowercase status messages 2012-06-12 14:18:18 +02:00
Martin Geisler
65ea7aa7d4 dispatch: lowercase --time message 2012-06-12 14:18:18 +02:00
Martin Geisler
78f77d335e win32text: lowercase warning message 2012-06-12 14:18:18 +02:00
Martin Geisler
cae2421779 patchbomb: lowercase status messages 2012-06-12 14:18:18 +02:00
Martin Geisler
a987a9f256 purge: lowercase messages 2012-06-12 14:18:18 +02:00
Martin Geisler
456b1eff3c mq: lowercase warning messages 2012-06-12 14:18:18 +02:00
Martin Geisler
643b04fbb7 largefiles: lowercase messages 2012-06-12 14:18:18 +02:00
Martin Geisler
955b598654 gpg: lowercase messages 2012-06-12 14:18:18 +02:00
Martin Geisler
44e8631986 fetch: lowercase abort message 2012-06-12 14:18:18 +02:00
Martin Geisler
1eafef5082 convert: lowercase status and abort messages 2012-06-12 14:18:18 +02:00
Martin Geisler
66a2883c3a churn: lowercase message 2012-06-12 14:18:18 +02:00
Martin Geisler
ff71ebe6cb test-parse-date: move remaining date parsing tests from test-log 2012-06-11 17:45:36 +02:00
Martin Geisler
ac521e4566 test-log: removed tests already covered by test-parse-date 2012-06-11 17:41:55 +02:00
Martin Geisler
153f2d8da4 test-parse-date: remove cruft from 752a743c1477
The test contained what looks like a copy-paste mistake.
2012-06-11 17:40:18 +02:00
Thomas Arendsen Hein
00da630fc2 merge with stable 2012-06-12 12:10:47 +02:00
Thomas Arendsen Hein
0c30f8dca5 archive: make progress only show files that are actually archived
Before this, files that are excluded (or not included) were shown when
using progress bar or --debug.

Reported by Andrew Shadura.
2012-06-12 12:05:52 +02:00
Adrian Buehlmann
aa512f3a63 test-hardlinks: enable for Windows 2012-06-11 19:57:25 +02:00
Adrian Buehlmann
d65f3078fe test-command-template: enable for Windows 2012-06-11 19:18:36 +02:00
Adrian Buehlmann
dffb3eecb9 test-rollback: enable for Windows
but without the part that needs serve
2012-06-11 19:04:18 +02:00
Adrian Buehlmann
30989f3fa5 test-init: enable for Windows
On Windows, we can't create a directory with the name " ", as that is
not a valid name for a directory.
2012-06-11 13:41:02 +02:00
Adrian Buehlmann
d75f30dfcb test-run-tests: add tests for "#if no-false" and no-true 2012-06-11 14:09:35 +02:00
Mads Kiilerich
fa1c4e5ebe tests: add missing trailing 'cd ..'
Many tests didn't change back from subdirectories at the end of the tests ...
and they don't have to. The missing 'cd ..' could always be added when another
test case is added to the test file.

This change do that tests (99.5%) consistently end up in $TESTDIR where they
started, thus making it simpler to extend them or move them around.
2012-06-11 01:40:51 +02:00
Mads Kiilerich
9355854f8a tests: cleanup of tests that got lost in their own nested directories
Some tests ended up in a directory several directories deeper than $TESTTMP,
usually because some 'cd ..' had been forgotten between different test cases.

Add 'cd ..' where they are missing so the tests get back where they started.
2012-06-11 01:38:32 +02:00
Mads Kiilerich
6da1af050c tests: cleanup of tests that ended up outside $TESTTMP
No harm done, but it might confuse later on.
2012-06-11 01:08:39 +02:00
Mads Kiilerich
3e748ea4a7 tests: remove 'hghave symlink' from test-import-git.t
The test had a long chain of commits depending on execbits in some of first
commits. The hashes are checked throughout the file, so there was no elegant
way to make it pass both with and without execbits.

We now rollback the execbits-or-not commits and make a stable change instead.
The hash chain is thus updated once but is now a bit more stable. The test
coverage should be unaltered.
2012-06-10 18:59:51 +02:00
Mads Kiilerich
23457816a7 tests: remove 'hghave symlink' from test-convert-svn-sink.t
The symlink was present all over the test and could not easily be guarded with
#if.

Symlink testing is now moved to a separate #if section. All the relevant test
coverage should unaltered.
2012-06-10 18:59:13 +02:00
Mads Kiilerich
c1d1cd29e9 tests: convert some 'hghave symlink' to #if
This will enable some tests for windows.
2012-06-10 18:50:42 +02:00
Mads Kiilerich
717f1ed7d4 tests: drop a couple of unnecessary 'hghave symlink' 2012-06-10 18:50:42 +02:00
Mads Kiilerich
936718b970 tests: use the right directory for running hghave from run-tests.py 2012-06-10 18:50:42 +02:00
Mads Kiilerich
cb3472a4d3 tests: make .t tests stop immediately if a cd fails
This prevents tests from escaping from TESTTMP as a consequence of a failing
directory creation.
2012-06-10 18:50:42 +02:00
Adrian Buehlmann
c425afcd4c test-remove-new: integrate into test-remove.t 2012-06-10 18:28:42 +02:00
Adrian Buehlmann
12dedf7259 test-bundle: enable for Windows 2012-06-10 17:35:09 +02:00
Adrian Buehlmann
59baf53223 test-rename.t: enable for Windows 2012-06-10 17:10:53 +02:00
Mads Kiilerich
d733986c74 tests: consistently use a HGEDITOR pattern that works with msys on windows
Removing the need for an executable sh script that can be run from a native
windows application enables some tests for running on windows.
2012-06-10 14:41:14 +02:00
Mads Kiilerich
2ff5fe8552 tests: glob the remaining 'saved backup bundle to' to prepare for windows 2012-06-10 14:14:52 +02:00
Mads Kiilerich
4f14a0a969 tests: convert some 'hghave execbit' to #if
This enables some new tests for running on windows.
2012-06-10 14:14:05 +02:00
Mads Kiilerich
1df3d48d73 tests: change odd uses of 'if hghave' to #if 2012-06-10 13:01:40 +02:00
Adrian Buehlmann
cc8d5d2d8e tests/run-tests: avoid C:/ in arguments
MSYS replaces C:/... in arguments with C;... as it interprets the C:/ as a
colon separated POSIX path list. The colon is replaced with ; (path separator
on Windows) according to

  http://www.mingw.org/wiki/Posix_path_conversion

So we must not replace \ with / for neither $TESTTMP nor $TESTDIR, but we
have to keep replacing \ with / for the Popen4 call of function hghave. If we
don't do the latter, test-run-tests.t will fail with

  $ python run-tests.py --local test-run-tests.t

  --- C:\Users\adi\hgrepos\hg-main\tests\test-run-tests.t
  +++ C:\Users\adi\hgrepos\hg-main\tests\test-run-tests.t.err
  @@ -70,6 +70,7 @@
     tested
   #else
     $ echo skipped
  +  skipped
   #endif

   #if false


An additional tweak in test-ssh.t is needed that globs away an encoded path,
as it can't be translated back to $TESTTMP, because the backslashes in the
output have been already encoded as %5C.

This patch makes test-ssh.t pass in MSYS on Windows.
2012-06-10 03:05:59 +02:00
Adrian Buehlmann
a98fa3a65d test-commit: remove extra cd ..
This specific cd .. leaves the base directory of the test ($TESTTMP).

Removing it avoids that test artifacts (e.g. files) are created
outside of the base directory.
2012-06-09 14:20:25 +02:00
Olav Reinert
919979c82d help: test keyword search in translated text.
Tests that help keyword search is able to search the translated help text when
using a non-English language.
2012-06-08 23:37:11 +02:00
Eduard-Cristian Stefan
28068f0f96 test-mq-subrepo-svn: enable for Windows 2012-06-08 05:49:50 +03:00
Eduard-Cristian Stefan
cf08ec9f79 test-convert-git: remove the read-only attribute of repository files
Git object files are stored read-only in the filesystem. Trying to remove a
read-only file on windows will fail with access denied, so we have to make them
writeable before they can be removed.
2012-06-08 05:37:06 +03:00
Eduard-Cristian Stefan
14ce40c59d test-convert: disable autocrlf for git
Git might have autocrlf=true as a global or default setting, especially on
windows. That is not expected in the tests and can cause
+  warning: LF will be replaced by CRLF in d/b.
+  The file will have its original line endings in your working directory.

Explicitly setting it false will make the test pass in some setups - but still
not out of the box.
2012-06-08 05:31:28 +03:00
Adrian Buehlmann
6e5f4815b5 tests/hghave: implement #if true / #if false
For unconditionally testing / skipping a section. Useful for testing the test
infrastructure in test-run-tests.t and for debugging/developing tests.
2012-06-08 15:11:05 +02:00
Adrian Buehlmann
2f072ea573 tests/run-tests: use $TMP on Windows (issue3490)
This is just a short-term workaround for that issue. More work needs to be
done on scmutil.canonpath & friends.

$TMP on Windows is specified to be defined, and it has correct casing, so we
can use that as the default dir for tempfile.mkdtemp on Windows.
2012-06-08 15:11:05 +02:00