annotate tests/groups-modern.t @ 65:030b8a638ccf

History note
author Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
date Sun, 18 Dec 2016 21:16:04 +0100
parents bbd1a915b34c
children 91efe98be062
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
cf3fe04cd96b Initial work on testing
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
diff changeset
1
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
2 Let's test group paths, configured with modern syntax.
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
3
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
4 Some locations used during testing:
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
5
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
6 $ WORK_DIR=${WORK_DIR-`pwd`/work}
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
7 $ rm -rf $WORK_DIR
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
8
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
9 $ export BASE=$WORK_DIR/base
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
10 $ export REP1=$WORK_DIR/rep1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
11 $ export REP2=$WORK_DIR/rep2
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
12 $ export REP3=$WORK_DIR/rep3
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
13 $ export REP4=$WORK_DIR/rep4
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
14
64
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
15 Some verifications, just to make sure
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
16
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
17 $ mkdir -p $WORK_DIR
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
18 $ cd $WORK_DIR
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
19 $ pwd
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
20 /tmp/cramtests-*/groups-modern.t/work (glob)
bbd1a915b34c Making sure all directories exist when necessary. This should hopefully
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 61
diff changeset
21
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
22 First we need appropriate Mercurial configuration file (and variable
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
23 which ensures it is used).
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
24
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
25 $ export HGRCPATH=$WORK_DIR/hgrc
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
26 $ mkdir -p $HGRCPATH
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
27
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
28 $ cat > $HGRCPATH/basic.rc << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
29 > [ui]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
30 > username = Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
31 > [extensions]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
32 > mercurial_all_paths =
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
33 > [all_paths]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
34 > group.odd = remote1 remote3
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
35 > group.even = remote2 remote4
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
36 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
37
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
38 We need some repositories to test.
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
39
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
40 $ hg init "$BASE"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
41 $ hg init "$REP1"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
42 $ hg init "$REP2"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
43 $ hg init "$REP3"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
44 $ hg init "$REP4"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
45
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
46 and configuration of groups:
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
47
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
48 $ cat > $BASE/.hg/hgrc << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
49 > [paths]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
50 > remote1=$REP1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
51 > remote2=$REP2
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
52 > remote3=$REP3
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
53 > remote4=$REP4
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
54 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
55
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
56 Let's test pushing
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
57
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
58 $ cat > $BASE/file.txt << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
59 > Some text
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
60 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
61
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
62 $ hg --cwd $BASE add
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
63 adding file.txt
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
64 $ hg --cwd $BASE commit -m 'First'
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
65
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
66 $ hg --cwd $BASE pushall -g odd
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
67 pushing to */rep1 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
68 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
69 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
70 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
71 adding file changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
72 added 1 changesets with 1 changes to 1 files
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
73
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
74 pushing to */rep3 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
75 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
76 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
77 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
78 adding file changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
79 added 1 changesets with 1 changes to 1 files
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
80
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
81 $ hg --cwd $REP1 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
82 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
83
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
84 $ hg --cwd $REP2 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
85
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
86 $ hg --cwd $REP3 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
87 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
88
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
89 $ hg --cwd $REP4 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
90
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
91
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
92 $ cat >> $BASE/file.txt << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
93 > More text
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
94 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
95
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
96 $ hg --cwd $BASE commit -m 'Second'
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
97
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
98
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
99 $ hg --cwd $BASE pushall --group even
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
100 pushing to */rep2 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
101 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
102 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
103 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
104 adding file changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
105 added 2 changesets with 2 changes to 1 files
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
106
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
107 pushing to */rep4 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
108 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
109 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
110 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
111 adding file changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
112 added 2 changesets with 2 changes to 1 files
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
113
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
114 $ hg --cwd $REP1 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
115 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
116
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
117 $ hg --cwd $REP2 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
118 1: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
119 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
120
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
121 $ hg --cwd $REP3 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
122 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
123
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
124 $ hg --cwd $REP4 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
125 1: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
126 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
127
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
128
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
129 Let's also test pulling
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
130
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
131 $ hg --cwd $REP1 update
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
132 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
133
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
134 $ cat > $REP1/rep1.txt << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
135 > Another text
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
136 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
137
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
138 $ hg --cwd $REP1 add
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
139 adding rep1.txt
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
140 $ hg --cwd $REP1 commit -m "In repo1"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
141
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
142
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
143 $ hg --cwd $REP2 update
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
144 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
145
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
146 $ cat >> $REP2/file.txt << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
147 > From repo2…
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
148 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
149
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
150 $ hg --cwd $REP2 commit -m "In repo2"
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
151
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
152 $ hg --cwd $BASE incomingall --group odd
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
153 comparing with */rep1 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
154 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
155 changeset: 1:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
156 tag: tip
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
157 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
158 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
159 summary: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
160
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
161 comparing with */rep3 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
162 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
163 no changes found
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
164
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
165 $ hg --cwd $BASE incomingall --group even
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
166 comparing with */rep2 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
167 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
168 changeset: 2:.* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
169 tag: tip
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
170 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
171 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
172 summary: In repo2
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
173
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
174 comparing with */rep4 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
175 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
176 no changes found
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
177
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
178 $ hg --cwd $BASE pullall -g odd
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
179 pulling from */rep1 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
180 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
181 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
182 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
183 adding file changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
184 added 1 changesets with 1 changes to 1 files (+1 heads)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
185 (run 'hg heads' to see heads, 'hg merge' to merge)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
186
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
187 pulling from */rep3 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
188 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
189 no changes found
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
190
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
191 $ hg --cwd $BASE log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
192 2: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
193 1: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
194 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
195
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
196 $ hg --cwd $BASE outgoingall --group odd
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
197 comparing with */rep1 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
198 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
199 changeset: 1:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
200 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
201 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
202 summary: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
203
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
204 comparing with */rep3 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
205 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
206 changeset: 1:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
207 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
208 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
209 summary: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
210
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
211 changeset: 2:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
212 tag: tip
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
213 parent: 0:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
214 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
215 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
216 summary: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
217
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
218
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
219 $ hg --cwd $BASE outgoingall --group even
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
220 comparing with */rep2 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
221 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
222 changeset: 2:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
223 tag: tip
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
224 parent: 0:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
225 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
226 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
227 summary: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
228
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
229 comparing with */rep4 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
230 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
231 changeset: 2:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
232 tag: tip
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
233 parent: 0:* (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
234 user: Andy Default <default@nowhere.net>
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
235 date: .* (re)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
236 summary: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
237
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
238
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
239 Wrong groups do not work
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
240
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
241 $ hg --cwd $BASE pullall -g unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
242 abort: No paths defined in section unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
243 [255]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
244
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
245 $ hg --cwd $BASE incomingall --group unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
246 abort: No paths defined in section unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
247 [255]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
248
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
249 $ hg --cwd $BASE outgoingall --group unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
250 abort: No paths defined in section unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
251 [255]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
252
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
253 $ hg --cwd $BASE pushall -g unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
254 abort: No paths defined in section unknown
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
255 [255]
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
256
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
257 But global access works
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
258
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
259 $ hg --cwd $BASE pushall
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
260 pushing to */rep1 (glob)
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
261 searching for changes
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
262 abort: push creates new remote head *! (glob)
58
35d3c8ef6fe9 Fixed test failing on 4.0
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 51
diff changeset
263 \((merge or see .hg help push. for details about pushing new heads|did you forget to merge.*)\) (re)
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
264 [255]
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
265
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
266 $ hg --cwd $BASE pullall
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
267 pulling from */rep1 (glob)
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
268 searching for changes
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
269 no changes found
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
270
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
271 pulling from */rep2 (glob)
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
272 searching for changes
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
273 adding changesets
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
274 adding manifests
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
275 adding file changes
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
276 added 1 changesets with 1 changes to 1 files
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
277 (run 'hg update' to get a working copy)
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
278
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
279 pulling from */rep3 (glob)
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
280 searching for changes
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
281 no changes found
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
282
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
283 pulling from */rep4 (glob)
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
284 searching for changes
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
285 no changes found
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
286
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
287 Finally let's test that push options work
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
288
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
289 $ cat > $BASE/br1.txt << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
290 > Br1 text
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
291 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
292
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
293 $ hg --cwd $BASE branch br1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
294 marked working directory as branch br1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
295 (branches are permanent and global, did you want a bookmark?)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
296 $ hg --cwd $BASE add
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
297 adding br1.txt
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
298 $ hg --cwd $BASE commit -m 'Br1'
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
299
61
5a517f942da0 Attempt to fix drone errors like
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 58
diff changeset
300 $ cd $BASE
65
030b8a638ccf History note
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 64
diff changeset
301 $ pwd
030b8a638ccf History note
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 64
diff changeset
302 /tmp/cramtests-*/groups-modern.t/work/base (glob)
030b8a638ccf History note
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 64
diff changeset
303 $ hg update default # --cwd $BASE
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
304 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
305 $ cat >> $BASE/file.txt << EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
306 > later text
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
307 > EOF
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
308 $ hg --cwd $BASE commit -m 'Normal'
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
309
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
310 $ hg --cwd $BASE pushall -r default -f -g odd
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
311 pushing to */rep1 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
312 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
313 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
314 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
315 adding file changes
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
316 added 3 changesets with 3 changes to 1 files (+1 heads)
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
317
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
318 pushing to */rep3 (glob)
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
319 searching for changes
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
320 adding changesets
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
321 adding manifests
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
322 adding file changes
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
323 added 3 changesets with 3 changes to 1 files
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
324
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
325 $ hg --cwd $BASE log --template '{rev}: {desc}\n'
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
326 5: Normal
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
327 4: Br1
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
328 3: In repo2
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
329 2: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
330 1: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
331 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
332
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
333 $ hg --cwd $REP1 log --template '{rev}: {desc}\n'
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
334 4: Normal
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
335 3: In repo2
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
336 2: Second
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
337 1: In repo1
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
338 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
339
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
340 $ hg --cwd $REP2 log --template '{rev}: {desc}\n'
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
341 2: In repo2
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
342 1: Second
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
343 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
344
51
14a3ffbba22b Fixing tests for older mercurials
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 48
diff changeset
345 $ hg --cwd $REP3 log --template '{rev}: {desc}\n'
48
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
346 3: Normal
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
347 2: In repo2
00995da9c204 Implemented priorities, fixed bugs in ignoring, both should work.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 46
diff changeset
348 1: Second
46
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
349 0: First
e695060c716e Tests for intended future behaviour of alternative groups and prioritizations
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents: 37
diff changeset
350