Commit Graph

17088 Commits

Author SHA1 Message Date
Mads Kiilerich
ccfffc07ba tests: add missing no-outer-repo requirements
Outer repos (if any) will now never be touched by the tests. But it is better
to run without any repos around the tmp directory.
2012-06-20 23:41:21 +02:00
Mads Kiilerich
db42f91a88 tests: convert some 'hghave no-outer-repo' to #if
In some places we instead use 'hg init' to create a well-known outer repo
without any special extensions or other config settings.
2012-06-20 23:41:21 +02:00
Matt Mackall
b95feae305 merge with stable 2012-06-20 12:30:16 -05:00
Matt Mackall
84f289778a merge with i18n 2012-06-20 12:29:08 -05:00
Thomas Arendsen Hein
1dffad0c67 tests: remove execute permission from two unified test files 2012-06-20 17:04:30 +02:00
Thomas Arendsen Hein
ad3dbec4ae graft: allow -r to specify revisions 2012-06-20 17:02:43 +02:00
Thomas Arendsen Hein
0e93bb1709 consistency: use REV instead of REVISION 2012-06-20 16:49:04 +02:00
Thomas Arendsen Hein
64a2699762 export: add optional -r to synopsis
It is not already covered by [OPTION]..., because in this case REV... would
need to be marked optional.
2012-06-20 16:46:10 +02:00
Thomas Arendsen Hein
a0b2b2d9c7 strip: add optional -r to synopsis 2012-06-20 16:44:21 +02:00
Thomas Arendsen Hein
833af3cb43 qimport: use [FILE]... because if -r is used no file is needed 2012-06-20 16:43:09 +02:00
Thomas Arendsen Hein
9e0f26649a mq: abort if no files or revisions are specified for qimport 2012-06-20 16:22:58 +02:00
Mads Kiilerich
f7215835a1 tests: convert some hghave unix-permissions to #if 2012-06-19 01:43:41 +02:00
Mads Kiilerich
8c68acd70f tests: run test-walk.t on windows
A couple of detours and changed paths are used to work around msys path conversion.
2012-06-19 00:20:38 +02:00
Mads Kiilerich
bacb1ab49d tests: better testing of 'glob:glob' in test-walk.t 2012-06-18 23:44:11 +02:00
Mads Kiilerich
87bc952d4b tests: move tests in test-walk.t using ':' in filenames to conditional section
eol-in-paths will also protect against testing ':' in filenames on FAT.
2012-06-18 23:44:11 +02:00
Wagner Bruna
512c045be5 merge with i18n 2012-06-18 16:21:31 -03:00
Martin Schröder
12b4867075 i18n-de: More corrections for translation of default, and other translations 2012-06-18 20:07:25 +02:00
Martin Schröder
2622e5f655 i18n-de: More corrections for translation of default, and other translations 2012-06-18 20:07:25 +02:00
Matt Mackall
737f1cb6a2 merge with i18n 2012-06-18 13:01:12 -05:00
Dan Villiom Podlaski Christiansen
4bc99faa5e rebase: improve error message on improper phases
The previous error message had two issues: The first issue was that it
wasn't, in fact, an error but a warning, even though it described a
fatal error condition preventing the successful completion of the
command. The second was that it didn't mention the immutable
changesets, leaving the user guessing at the true cause of the error.

The main downside to this change is that we now get an 'abort: can't
abort...' message which technically contradicts itself. In this case,
I blame that on the two uses we have for the word; if it weren't for
backwards compatibility, we could make util.Abort print out 'error:
<whatever>'.
2012-06-18 11:16:24 +02:00
Mads Kiilerich
41f2a4d13d tests: remove hghave system-sh from test-pending.t
The alternative would have been to add a unix-permissions requirement.
2012-06-18 03:42:28 +02:00
Martin Schröder
ef66a45d6c Corrected hyphenation, translated subrepo help and other strings 2012-06-17 15:57:35 +02:00
Matt Harbison
63a46b018b subrepo: propagate matcher to subrepos when archiving
Add a match object to subrepo.archive(). This will allow the -X and -I
options to be honored inside subrepos when archiving. They formerly
only affect the top level repo.
2012-06-16 22:34:06 -04:00
Matt Harbison
218655984d largefiles: remove a standin check that could never be true 2012-06-18 22:45:21 -04:00
Matt Harbison
c16332f051 largefiles: fix the directory structure when archiving a subrepo in a subrepo
Previously, a repo consisting of main/sub/subsub archived sub and subsub as
siblings under main.
2012-06-18 23:02:51 -04:00
Matt Harbison
bf6dae387d largefiles: fix a traceback when archiving a subrepo in a subrepo
This regression was introduced in 310edb24b71f.
2012-06-17 21:57:48 -04:00
Mads Kiilerich
ff855a00ed help: improve hgweb help
The existing help only walked through an example.

Now we first explain the basic rules and then show an example.

The 'collections' example and description only cause confusion and is removed.

Bikeshedded by Patrick Mezard <patrick@mezard.eu>
2012-06-21 12:50:15 +02:00
Patrick Mezard
e029e6740d convert: keep branch switching merges with ancestors (issue3340)
When running convert with a filemap, merge parents which are ancestors
of other parents are ignored. This is hardly a problem when parents
belong to the same branch, but the result could be confusing when named
branches are involved. With:

  -o-a1-a2-a3...     <- A
    \           \
     b1-b2-b3...-m-  <- B

If all b* revisions are discarded, it is useful to preserve 'm' even if
it is empty after filtering to record the branch switch.

This patch makes filemap preserve "ancestor parents" if there is no
"non-ancestor parent" on the same branch than the merge revision.

Remarks:
- I am not completely convinced by the reasons given above and those
  detailed by Matt in this thread:

http://selenic.com/pipermail/mercurial-devel/2012-May/040627.html

  The properties we try to preserve are not clearly defined. That said,
  I know this patch already helped someone on IRC and the tests output
  look reasonable.

- This is a new version of the original "convert: filemap must preserve
  fast-forward merges" patch. It has exactly the same output for 2
  parents merges, the additional complexity is here to handle more than
  two parents.
2012-06-18 18:19:28 +02:00
Adrian Buehlmann
b761076e81 tests/printenv.py: eliminate trailing spaces on output 2012-06-17 00:27:31 +02:00
Mads Kiilerich
64b75078bf tests: fix test-i18n.t after translation update 2012-06-18 23:28:56 +02:00
Yuya Nishihara
7714ac81fa graft: don't drop the second parent on unsuccessful merge (issue3498)
This replicates the strategy of rebase, which postpones setparents and
duplicatecopies after checking the merge stats.

Without the second parent, resolve cannot redo merge.
2012-06-16 17:05:55 +09:00
Martin Schröder
6d576aaa76 i18n-de: translate default as Vorgabe 2012-06-15 22:07:07 +02:00
Martin Schröder
4438b6792b i18n-de: translate default as Vorgabe 2012-06-15 22:07:07 +02:00
Martin Schröder
3c6e3192f1 i18n-de: Update strings, translated many fuzzy strings 2012-06-15 19:17:35 +02:00
Wagner Bruna
a7c92c1fed i18n-pt_BR: synchronized with ba2ebebf697e 2012-06-18 16:42:52 -03:00
Martin Schröder
7a60527607 i18n-de: Update strings, translated many fuzzy strings 2012-06-15 19:17:35 +02:00
Alexander Sauta
ce08b7644a i18n-ru: synchronized with e078a6ebea65 2012-06-15 07:47:52 +01:00
Mads Kiilerich
915c0dcd46 tests: use hghave eol-in-paths to test for support for ':' in filenames and " "
It is an approximation but seems to work ok ... and testing that 'foo:bar'
creates a real file and not just a resource fork is not completely trivial.
2012-06-15 00:02:27 +02:00
Mads Kiilerich
142a6e38ef tests: use a different evil name in test-hgweb-raw.t
The test used a filename with ':' which prevented the test from running on
Windows and FAT.

It now uses a filename with space and '%' and will thus still exercise proper
url escaping.
2012-06-15 00:02:27 +02:00
Mads Kiilerich
a90ec570cc tests: add some missing #if's / hghave requirements
Seen on Linux with FAT.
2012-06-15 00:02:27 +02:00
Mads Kiilerich
bf6fb79f83 tests: introduce hghave hardlinks
Some tests can't be run on FAT filesystems because it doesn't support
hardlinks.
2012-06-15 00:02:27 +02:00
Mads Kiilerich
c909f8280c tests/hghave: test that the inotify unix socket actually can be created
Inotify do not work on FAT filesystems.
2012-06-15 00:02:27 +02:00
Mads Kiilerich
395b2875e3 tests/hghave: test that a fifo actually can be created on the filesystem
Some tests were failing on FAT filesystems.
2012-06-15 00:02:27 +02:00
Mads Kiilerich
266857283d tests/hghave: consistently use dir='.', prefix=tempprefix for tempfiles
Some feature tests were done in the wrong directory and could thus give the
wrong result.
2012-06-15 00:02:27 +02:00
Adrian Buehlmann
3b58ce33ed test-merge-tools: adapt for Windows 2012-06-15 17:32:33 +02:00
Adrian Buehlmann
c74860921b tests/hghave: extract hghave.py
hghave is degraded to a bare script, moving the functions to hghave.py
so they can be shared later on.
2012-06-14 12:54:54 +02:00
Mads Kiilerich
a4be6ed644 test-alias: adapt for Windows
The test used 'echo' to test '!' style aliases. On Windows 'echo' is handled
by cmd and thus behaves very differently from the 'normal' echo command.

The simple workaround used here for using the same alias on all platforms
is to use 'printf' instead. Msys 'printf' will also handle sh quoting and
escaping in cmd.

Environment variable expansion with sh syntax is handled by launching sh.
2012-06-16 21:57:42 +02:00
Adrian Buehlmann
4bb68f47e6 test-hook: adapt for Windows 2012-06-15 21:42:47 +02:00
Adrian Buehlmann
4a04525078 tests/printenv.py: replace \ with / in output
saves us quite a bunch of (glob)'s
2012-06-15 19:59:36 +02:00
Adrian Buehlmann
f5cf6e558b test-clone-pull-corruption: adapt for Windows 2012-06-15 18:56:16 +02:00