Commit Graph

5453 Commits

Author SHA1 Message Date
Matt Harbison
5c29c87aee revset: add a predicate for finding converted changesets
This selects changesets added because of repo conversions.  For example

    hg log -r "converted()"      # all csets created by a convertion
    hg log -r "converted(rev)"   # the cset converted from rev in the src repo

The converted(rev) form is analogous to remote(id), where the remote repo is
the source of the conversion.  This can be useful for cross referencing an old
repository into the current one.

The source revision may be the short changeset hash or the full hash from the
source repository.  The local identifier isn't useful.  An interesting
ramification of this is if a short revision is specified, it may cause more
than one changeset to be selected.  (e.g. converted(6) matches changesets with
a convert_revision field of 6e..e and 67..0)

The convert.hg.saverev option must have been specified when converting the hg
source repository for this to work.  The other sources automatically embed the
converted marker.
2012-05-13 01:12:26 -04: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
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
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
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
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
Adrian Buehlmann
1bf460cf59 test-merge-tools: inline pointless domerge function
This also uncovers the exit codes of the 'hg merge' calls
2012-06-15 15:10:19 +02:00
Adrian Buehlmann
c288410706 test-bisect: adapt for Windows 2012-06-15 01:02:44 +02:00
Adrian Buehlmann
6d187a37e0 test-journal-exists: use #if 2012-06-15 00:39:21 +02:00
Elifarley Callado Coelho Cruz
589d45cced acl: use of "!" prefix in user or group names
The "!" prefix allows you to prevent anyone except a given user or group to push
changesets in a given branch or path.

This patch enables a use case suggested by a user (Julien Bonnet):
There's a branch that only a given user (or group) should be able to push to,
and you don't want to restrict access to any other branch that may be created.

With the "!" prefix, you simply deny access to "!givenuser" (or "!@givengroup").
2012-05-28 19:45:15 -03:00
Eduard-Cristian Stefan
112aea1890 test-convert: disable autocrlf for git 2012-06-08 05:31:28 +03:00
Martin Geisler
f92437e97c merge with stable 2012-06-13 20:14:28 +02:00
Mads Kiilerich
8a58b3e3c1 help: sort results from keyword search 2012-06-13 02:44:46 +02:00
Mads Kiilerich
021b623928 tests: reintroduce globs in test-convert-authormap.t
They are needed on windows and were accidentally removed in de665be9a988.
2012-06-13 02:29:47 +02:00
Elifarley Callado Coelho Cruz
5927f8f943 tests: removed unneeded section in acl configuration: 'extensions'
Declaring 'acl' in the [extensions] section doesn't change anything.
2012-06-01 11:15:00 -03:00
Olav Reinert
7c9defd0db help: fix extension commands help in keyword search
This patch fixes the synopsis shown for extension commands in keyword search
results. A previous patch erroneously caused the extension synopsis to be shown
instead.

Test cases for keyword search are missing, so I added a one.
2012-06-07 01:42:50 +02:00
Martin Geisler
2fb6d24292 ui: lowercase "no username" warning 2012-06-12 14:18:18 +02:00
Martin Geisler
85338c4193 ui: lowercase "not trusting file" warning message 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
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
1eafef5082 convert: lowercase status and abort messages 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