Mercurial > hg
annotate tests/test-share.out @ 12039:18e1e7520b67 stable
alias: make shadowing behavior more consistent (issue2054)
Currently, given an alias like the following:
[alias]
summary = summary --remote
The alias might be executed - or it might not - depending on the order
of the cmdtable dict.
This happens because cmdalias gets assigned back to the cmdtable like so:
cmdtable['summary'] = ...
Yet '^summary|sum' is still in the table, so which one cmdutil.findcmd()
chooses isn't deterministic.
This patch makes cmdalias assign back to '^summary|sum'. It uses the same
cmdtable key lookup that extensions.wrapcommand() does.
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Sat, 21 Aug 2010 22:48:14 -0400 |
parents | 2250fc372d34 |
children |
rev | line source |
---|---|
9990 | 1 % prepare repo1 |
2 adding a | |
3 % share it | |
4 updating working directory | |
5 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
6 % contents of repo2/.hg | |
7 pass: .hg/store does not exist | |
10468
2250fc372d34
Fix test-share and test-subrepo under Windows
Patrick Mezard <pmezard@gmail.com>
parents:
10078
diff
changeset
|
8 $HGTMP/test-share/repo1/.hg |
9990 | 9 % commit in shared clone |
10 % check original | |
11 changeset: 1:8af4dc49db9e | |
12 tag: tip | |
13 user: test | |
14 date: Thu Jan 01 00:00:00 1970 +0000 | |
15 summary: change in shared clone | |
16 | |
17 changeset: 0:d3873e73d99e | |
18 user: test | |
19 date: Thu Jan 01 00:00:00 1970 +0000 | |
20 summary: init | |
21 | |
22 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
23 a | |
24 a | |
25 % commit in original | |
26 adding b | |
27 % check in shared clone | |
28 changeset: 2:c2e0ac586386 | |
29 tag: tip | |
30 user: test | |
31 date: Thu Jan 01 00:00:00 1970 +0000 | |
32 summary: another file | |
33 | |
34 changeset: 1:8af4dc49db9e | |
35 user: test | |
36 date: Thu Jan 01 00:00:00 1970 +0000 | |
37 summary: change in shared clone | |
38 | |
39 changeset: 0:d3873e73d99e | |
40 user: test | |
41 date: Thu Jan 01 00:00:00 1970 +0000 | |
42 summary: init | |
43 | |
44 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
45 b | |
10078
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
46 % hg serve shared clone |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
47 200 Script output follows |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
48 |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
49 |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
50 -rw-r--r-- 4 a |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
51 -rw-r--r-- 2 b |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
52 |
97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
Brendan Cully <brendan@kublai.com>
parents:
9990
diff
changeset
|
53 |