Mercurial > hg
annotate tests/test-clone.t @ 24588:0bf54479a9eb
json: implement {shortlog} and {changelog} templates
These are the same dispatch function under the hood. The only difference
is the default number of entries to render and the template to use. So
it makes sense to use a shared template.
Format for {changelistentry} is similar to {changeset}. However, there
are differences to argument names and their values preventing us from
(easily) using the same template. (Perhaps there is room to consolidate
the templates as a follow-up.)
We're currently not recording some data in {changelistentry} that exists
in {changeset}. This includes the branch name. This should be added in
a follow-up. For now, something is better than nothing.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 31 Mar 2015 22:53:48 -0700 |
parents | 27ad6b91f5c2 |
children | 82fddb3d6bc0 |
rev | line source |
---|---|
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
1 Prepare repo a: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
2 |
13956
ffb5c09ba822
tests: remove redundant mkdir
Martin Geisler <mg@lazybytes.net>
parents:
13058
diff
changeset
|
3 $ hg init a |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
4 $ cd a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
5 $ echo a > a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
6 $ hg add a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
7 $ hg commit -m test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
8 $ echo first line > b |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
9 $ hg add b |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
10 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
11 Create a non-inlined filelog: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
12 |
22947
c63a09b6b337
tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents:
22648
diff
changeset
|
13 $ $PYTHON -c 'file("data1", "wb").write("".join("%s\n" % x for x in range(10000)))' |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
14 $ for j in 0 1 2 3 4 5 6 7 8 9; do |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
15 > cat data1 >> b |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
16 > hg commit -m test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
17 > done |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
18 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
19 List files in store/data (should show a 'b.d'): |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
20 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
21 $ for i in .hg/store/data/*; do |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
22 > echo $i |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
23 > done |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
24 .hg/store/data/a.i |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
25 .hg/store/data/b.d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
26 .hg/store/data/b.i |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
27 |
22264
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
28 Trigger branchcache creation: |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
29 |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
30 $ hg branches |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
31 default 10:a7949464abda |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
32 $ ls .hg/cache |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
33 branch2-served |
23786
7d63398fbfd1
branchmap: use revbranchcache when updating branch map
Mads Kiilerich <madski@unity3d.com>
parents:
23096
diff
changeset
|
34 rbc-names-v1 |
7d63398fbfd1
branchmap: use revbranchcache when updating branch map
Mads Kiilerich <madski@unity3d.com>
parents:
23096
diff
changeset
|
35 rbc-revs-v1 |
22264
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
36 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
37 Default operation: |
550 | 38 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
39 $ hg clone . ../b |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
40 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
41 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
42 $ cd ../b |
22264
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
43 |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
44 Ensure branchcache got copied over: |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
45 |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
46 $ ls .hg/cache |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
47 branch2-served |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
48 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
49 $ cat a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
50 a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
51 $ hg verify |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
52 checking changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
53 checking manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
54 crosschecking files in changesets and manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
55 checking files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
56 2 files, 11 changesets, 11 total revisions |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
57 |
13058
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
58 Invalid dest '' must abort: |
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
59 |
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
60 $ hg clone . '' |
17159
36a3016811d1
localrepo: use the path relative to "self.vfs" instead of "path" argument
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17135
diff
changeset
|
61 abort: empty destination path is not valid |
13058
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
62 [255] |
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
63 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
64 No update, with debug option: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
65 |
16971
8aeb2f1ae94c
tests: introduce hghave hardlinks
Mads Kiilerich <mads@kiilerich.com>
parents:
16898
diff
changeset
|
66 #if hardlink |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
67 $ hg --debug clone -U . ../c |
24440
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
68 linking: 1 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
69 linking: 2 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
70 linking: 3 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
71 linking: 4 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
72 linking: 5 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
73 linking: 6 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
74 linking: 7 |
27ad6b91f5c2
clone: add progress support to hardlink clones (issue3059)
Augie Fackler <augie@google.com>
parents:
23786
diff
changeset
|
75 linking: 8 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
76 linked 8 files |
16971
8aeb2f1ae94c
tests: introduce hghave hardlinks
Mads Kiilerich <mads@kiilerich.com>
parents:
16898
diff
changeset
|
77 #else |
8aeb2f1ae94c
tests: introduce hghave hardlinks
Mads Kiilerich <mads@kiilerich.com>
parents:
16898
diff
changeset
|
78 $ hg --debug clone -U . ../c |
8aeb2f1ae94c
tests: introduce hghave hardlinks
Mads Kiilerich <mads@kiilerich.com>
parents:
16898
diff
changeset
|
79 copied 8 files |
8aeb2f1ae94c
tests: introduce hghave hardlinks
Mads Kiilerich <mads@kiilerich.com>
parents:
16898
diff
changeset
|
80 #endif |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
81 $ cd ../c |
22264
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
82 |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
83 Ensure branchcache got copied over: |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
84 |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
85 $ ls .hg/cache |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
86 branch2-served |
4bc1fd86e915
clone: for local clones, copy over filtered branchcaches as well (issue4286)
Siddharth Agarwal <sid0@fb.com>
parents:
20825
diff
changeset
|
87 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
88 $ cat a 2>/dev/null || echo "a not present" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
89 a not present |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
90 $ hg verify |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
91 checking changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
92 checking manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
93 crosschecking files in changesets and manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
94 checking files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
95 2 files, 11 changesets, 11 total revisions |
550 | 96 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
97 Default destination: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
98 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
99 $ mkdir ../d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
100 $ cd ../d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
101 $ hg clone ../a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
102 destination directory: a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
103 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
104 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
105 $ cd a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
106 $ hg cat a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
107 a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
108 $ cd ../.. |
550 | 109 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
110 Check that we drop the 'file:' from the path before writing the .hgrc: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
111 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
112 $ hg clone file:a e |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
113 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
114 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
115 $ grep 'file:' e/.hg/hgrc |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
11839
diff
changeset
|
116 [1] |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
117 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
118 Check that path aliases are expanded: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
119 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
120 $ hg clone -q -U --config 'paths.foobar=a#0' foobar f |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
121 $ hg -R f showconfig paths.default |
15520
d6d7b56ec346
tests: add missing '(glob)'s to match '\' in paths in test output on windows
Mads Kiilerich <mads@kiilerich.com>
parents:
14553
diff
changeset
|
122 $TESTTMP/a#0 (glob) |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
123 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
124 Use --pull: |
550 | 125 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
126 $ hg clone --pull a g |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
127 requesting all changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
128 adding changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
129 adding manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
130 adding file changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
131 added 11 changesets with 11 changes to 2 files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
132 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
133 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
134 $ hg -R g verify |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
135 checking changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
136 checking manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
137 crosschecking files in changesets and manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
138 checking files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
139 2 files, 11 changesets, 11 total revisions |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
140 |
13058
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
141 Invalid dest '' with --pull must abort (issue2528): |
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
142 |
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
143 $ hg clone --pull a '' |
17159
36a3016811d1
localrepo: use the path relative to "self.vfs" instead of "path" argument
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
17135
diff
changeset
|
144 abort: empty destination path is not valid |
13058
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
145 [255] |
5986f44ea63c
test-clone.t: add basic cases for destination ''
Adrian Buehlmann <adrian@cadifra.com>
parents:
12847
diff
changeset
|
146 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
147 Clone to '.': |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
148 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
149 $ mkdir h |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
150 $ cd h |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
151 $ hg clone ../a . |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
152 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
153 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
154 $ cd .. |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
155 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
156 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
157 *** Tests for option -u *** |
5225
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
158 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
159 Adding some more history to repo a: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
160 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
161 $ cd a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
162 $ hg tag ref1 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
163 $ echo the quick brown fox >a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
164 $ hg ci -m "hacked default" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
165 $ hg up ref1 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
166 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
167 $ hg branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
168 marked working directory as branch stable |
15615 | 169 (branches are permanent and global, did you want a bookmark?) |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
170 $ echo some text >a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
171 $ hg ci -m "starting branch stable" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
172 $ hg tag ref2 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
173 $ echo some more text >a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
174 $ hg ci -m "another change for branch stable" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
175 $ hg up ref2 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
176 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
177 $ hg parents |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
178 changeset: 13:e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
179 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
180 tag: ref2 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
181 parent: 10:a7949464abda |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
182 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
183 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
184 summary: starting branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
185 |
5225
76c4cadb49fc
clone: remove "file://" before making the path absolute
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
1926
diff
changeset
|
186 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
187 Repo a has two heads: |
6088
3b96cefc1b2b
clone: expand the path before saving it in .hg/hgrc
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5225
diff
changeset
|
188 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
189 $ hg heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
190 changeset: 15:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
191 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
192 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
193 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
194 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
195 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
196 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
197 changeset: 12:f21241060d6a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
198 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
199 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
200 summary: hacked default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
201 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
202 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
203 $ cd .. |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
204 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
205 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
206 Testing --noupdate with --updaterev (must abort): |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
207 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
208 $ hg clone --noupdate --updaterev 1 a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
209 abort: cannot specify both --noupdate and --updaterev |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
11839
diff
changeset
|
210 [255] |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
211 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
212 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
213 Testing clone -u: |
6947
a7fcb43af82e
increase code coverage of test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
6088
diff
changeset
|
214 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
215 $ hg clone -u . a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
216 updating to branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
217 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
218 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
219 Repo ua has both heads: |
7927
a218ba5f60df
allow clone into existing but empty directories
Steve Borho <steve@borho.org>
parents:
6947
diff
changeset
|
220 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
221 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
222 changeset: 15:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
223 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
224 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
225 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
226 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
227 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
228 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
229 changeset: 12:f21241060d6a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
230 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
231 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
232 summary: hacked default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
233 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
234 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
235 Same revision checked out in repo a and ua: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
236 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
237 $ hg -R a parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
238 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
239 $ hg -R ua parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
240 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
241 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
242 $ rm -r ua |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
243 |
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
244 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
245 Testing clone --pull -u: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
246 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
247 $ hg clone --pull -u . a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
248 requesting all changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
249 adding changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
250 adding manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
251 adding file changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
252 added 16 changesets with 16 changes to 3 files (+1 heads) |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
253 updating to branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
254 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
255 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
256 Repo ua has both heads: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
257 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
258 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
259 changeset: 15:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
260 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
261 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
262 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
263 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
264 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
265 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
266 changeset: 12:f21241060d6a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
267 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
268 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
269 summary: hacked default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
270 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
271 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
272 Same revision checked out in repo a and ua: |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
273 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
274 $ hg -R a parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
275 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
276 $ hg -R ua parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
277 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
278 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
279 $ rm -r ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
280 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
281 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
282 Testing clone -u <branch>: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
283 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
284 $ hg clone -u stable a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
285 updating to branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
286 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
287 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
288 Repo ua has both heads: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
289 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
290 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
291 changeset: 15:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
292 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
293 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
294 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
295 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
296 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
297 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
298 changeset: 12:f21241060d6a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
299 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
300 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
301 summary: hacked default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
302 |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
303 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
304 Branch 'stable' is checked out: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
305 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
306 $ hg -R ua parents |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
307 changeset: 15:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
308 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
309 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
310 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
311 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
312 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
313 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
314 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
315 $ rm -r ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
316 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
317 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
318 Testing default checkout: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
319 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
320 $ hg clone a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
321 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
322 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
323 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
324 Repo ua has both heads: |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
325 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
326 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
327 changeset: 15:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
328 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
329 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
330 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
331 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
332 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
333 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
334 changeset: 12:f21241060d6a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
335 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
336 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
337 summary: hacked default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
338 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
339 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
340 Branch 'default' is checked out: |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
341 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
342 $ hg -R ua parents |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
343 changeset: 12:f21241060d6a |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
344 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
345 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
346 summary: hacked default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
347 |
17869
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
348 Test clone with a branch named "@" (issue3677) |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
349 |
17869
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
350 $ hg -R ua branch @ |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
351 marked working directory as branch @ |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
352 (branches are permanent and global, did you want a bookmark?) |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
353 $ hg -R ua commit -m 'created branch @' |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
354 $ hg clone ua atbranch |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
355 updating to branch default |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
356 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
357 $ hg -R atbranch heads |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
358 changeset: 16:798b6d97153e |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
359 branch: @ |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
360 tag: tip |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
361 parent: 12:f21241060d6a |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
362 user: test |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
363 date: Thu Jan 01 00:00:00 1970 +0000 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
364 summary: created branch @ |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
365 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
366 changeset: 15:0aae7cf88f0d |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
367 branch: stable |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
368 user: test |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
369 date: Thu Jan 01 00:00:00 1970 +0000 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
370 summary: another change for branch stable |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
371 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
372 changeset: 12:f21241060d6a |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
373 user: test |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
374 date: Thu Jan 01 00:00:00 1970 +0000 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
375 summary: hacked default |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
376 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
377 $ hg -R atbranch parents |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
378 changeset: 12:f21241060d6a |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
379 user: test |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
380 date: Thu Jan 01 00:00:00 1970 +0000 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
381 summary: hacked default |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
382 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
383 |
c79b404b99ae
test-clone.t: check that branch "@" is not automatically checked out
Thomas Arendsen Hein <thomas@intevation.de>
parents:
17756
diff
changeset
|
384 $ rm -r ua atbranch |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
385 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
386 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
387 Testing #<branch>: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
388 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
389 $ hg clone -u . a#stable ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
390 adding changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
391 adding manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
392 adding file changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
393 added 14 changesets with 14 changes to 3 files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
394 updating to branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
395 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
396 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
397 Repo ua has branch 'stable' and 'default' (was changed in fd511e9eeea6): |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
398 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
399 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
400 changeset: 13:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
401 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
402 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
403 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
404 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
405 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
406 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
407 changeset: 10:a7949464abda |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
408 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
409 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
410 summary: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
411 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
412 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
413 Same revision checked out in repo a and ua: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
414 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
415 $ hg -R a parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
416 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
417 $ hg -R ua parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
418 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
419 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
420 $ rm -r ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
421 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
422 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
423 Testing -u -r <branch>: |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
424 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
425 $ hg clone -u . -r stable a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
426 adding changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
427 adding manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
428 adding file changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
429 added 14 changesets with 14 changes to 3 files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
430 updating to branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
431 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
432 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
433 Repo ua has branch 'stable' and 'default' (was changed in fd511e9eeea6): |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
434 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
435 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
436 changeset: 13:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
437 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
438 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
439 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
440 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
441 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
442 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
443 changeset: 10:a7949464abda |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
444 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
445 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
446 summary: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
447 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
448 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
449 Same revision checked out in repo a and ua: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
450 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
451 $ hg -R a parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
452 e8ece76546a6 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
453 $ hg -R ua parents --template "{node|short}\n" |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
454 e8ece76546a6 |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
455 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
456 $ rm -r ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
457 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
458 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
459 Testing -r <branch>: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
460 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
461 $ hg clone -r stable a ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
462 adding changesets |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
463 adding manifests |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
464 adding file changes |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
465 added 14 changesets with 14 changes to 3 files |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
466 updating to branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
467 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
468 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
469 Repo ua has branch 'stable' and 'default' (was changed in fd511e9eeea6): |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
470 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
471 $ hg -R ua heads |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
472 changeset: 13:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
473 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
474 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
475 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
476 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
477 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
478 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
479 changeset: 10:a7949464abda |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
480 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
481 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
482 summary: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
483 |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
484 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
485 Branch 'stable' is checked out: |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
486 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
487 $ hg -R ua parents |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
488 changeset: 13:0aae7cf88f0d |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
489 branch: stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
490 tag: tip |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
491 user: test |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
492 date: Thu Jan 01 00:00:00 1970 +0000 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
493 summary: another change for branch stable |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
494 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
495 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
496 $ rm -r ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
497 |
9714
2f1ab7f77ddc
clone: add option -u/--updaterev
Adrian Buehlmann <adrian@cadifra.com>
parents:
8167
diff
changeset
|
498 |
12399
4fee1fd3de9a
tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents:
12376
diff
changeset
|
499 Issue2267: Error in 1.6 hg.py: TypeError: 'NoneType' object is not |
4fee1fd3de9a
tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents:
12376
diff
changeset
|
500 iterable in addbranchrevs() |
11544
be5e86c80628
hg.clone: fix branch value when passing a repo object (issue2267)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11295
diff
changeset
|
501 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
502 $ cat <<EOF > simpleclone.py |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
503 > from mercurial import ui, hg |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
504 > myui = ui.ui() |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
505 > repo = hg.repository(myui, 'a') |
14553
d976542986d2
hg: add opts argument to clone for internal remoteui
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
13956
diff
changeset
|
506 > hg.clone(myui, {}, repo, dest="ua") |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
507 > EOF |
11544
be5e86c80628
hg.clone: fix branch value when passing a repo object (issue2267)
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11295
diff
changeset
|
508 |
11806
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
509 $ python simpleclone.py |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
510 updating to branch default |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
511 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
512 |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
513 $ rm -r ua |
fd66a181f575
tests: unify test-clone
Adrian Buehlmann <adrian@cadifra.com>
parents:
11544
diff
changeset
|
514 |
11839
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
515 $ cat <<EOF > branchclone.py |
17135
06733dfe1a43
test-clone: load extensions before doing anything
Bryan O'Sullivan <bryano@fb.com>
parents:
16971
diff
changeset
|
516 > from mercurial import ui, hg, extensions |
11839
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
517 > myui = ui.ui() |
17135
06733dfe1a43
test-clone: load extensions before doing anything
Bryan O'Sullivan <bryano@fb.com>
parents:
16971
diff
changeset
|
518 > extensions.loadall(myui) |
11839
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
519 > repo = hg.repository(myui, 'a') |
14553
d976542986d2
hg: add opts argument to clone for internal remoteui
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
13956
diff
changeset
|
520 > hg.clone(myui, {}, repo, dest="ua", branch=["stable",]) |
11839
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
521 > EOF |
11818
b1ae33b813cb
hg.clone: do not ignore branch argument when source is a repo object
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
11544
diff
changeset
|
522 |
11839
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
523 $ python branchclone.py |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
524 adding changesets |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
525 adding manifests |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
526 adding file changes |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
527 added 14 changesets with 14 changes to 3 files |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
528 updating to branch stable |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
529 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
8c034517b406
test-clone: f1c2de22b8a8 lost changes from b1ae33b813cb
Martin Geisler <mg@aragost.com>
parents:
11823
diff
changeset
|
530 $ rm -r ua |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
531 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
532 |
17756
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
533 Test clone with special '@' bookmark: |
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
534 $ cd a |
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
535 $ hg bookmark -r a7949464abda @ # branch point of stable from default |
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
536 $ hg clone . ../i |
17882
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
537 updating to bookmark @ |
17756
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
538 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
539 $ hg id -i ../i |
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
540 a7949464abda |
17882
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
541 $ rm -r ../i |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
542 |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
543 $ hg bookmark -f -r stable @ |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
544 $ hg bookmarks |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
545 @ 15:0aae7cf88f0d |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
546 $ hg clone . ../i |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
547 updating to bookmark @ on branch stable |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
548 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
549 $ hg id -i ../i |
36ed69d4593d
clone: show status "updating to bookmark @"
Adrian Buehlmann <adrian@cadifra.com>
parents:
17881
diff
changeset
|
550 0aae7cf88f0d |
17881
603d4fbad36d
test-clone: fix directory level
Adrian Buehlmann <adrian@cadifra.com>
parents:
17872
diff
changeset
|
551 $ cd "$TESTTMP" |
17756
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
552 |
92980a8dfdfe
clone: update to @ bookmark if it exists
Kevin Bullock <kbullock@ringworld.org>
parents:
17424
diff
changeset
|
553 |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
554 Testing failures: |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
555 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
556 $ mkdir fail |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
557 $ cd fail |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
558 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
559 No local source |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
560 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
561 $ hg clone a b |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
562 abort: repository a not found! |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
563 [255] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
564 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
565 No remote source |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
566 |
23059
6ecd1ff8c42c
tests: add "(glob)" for l10n messages in test-clone.t for Windows
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
22947
diff
changeset
|
567 #if windows |
6ecd1ff8c42c
tests: add "(glob)" for l10n messages in test-clone.t for Windows
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
22947
diff
changeset
|
568 $ hg clone http://127.0.0.1:3121/a b |
6ecd1ff8c42c
tests: add "(glob)" for l10n messages in test-clone.t for Windows
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
22947
diff
changeset
|
569 abort: error: * (glob) |
6ecd1ff8c42c
tests: add "(glob)" for l10n messages in test-clone.t for Windows
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
22947
diff
changeset
|
570 [255] |
6ecd1ff8c42c
tests: add "(glob)" for l10n messages in test-clone.t for Windows
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
22947
diff
changeset
|
571 #else |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
572 $ hg clone http://127.0.0.1:3121/a b |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
573 abort: error: *refused* (glob) |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
574 [255] |
23059
6ecd1ff8c42c
tests: add "(glob)" for l10n messages in test-clone.t for Windows
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
22947
diff
changeset
|
575 #endif |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
576 $ rm -rf b # work around bug with http clone |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
577 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
578 |
20008
e54a078153f7
tests: skip tests that require not having root (issue4089)
Matt Mackall <mpm@selenic.com>
parents:
18227
diff
changeset
|
579 #if unix-permissions no-root |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
580 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
581 Inaccessible source |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
582 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
583 $ mkdir a |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
584 $ chmod 000 a |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
585 $ hg clone a b |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
586 abort: repository a not found! |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
587 [255] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
588 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
589 Inaccessible destination |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
590 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
591 $ hg init b |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
592 $ cd b |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
593 $ hg clone . ../a |
18227
720308f741cb
dispatch: show empty filename in OSError aborts
Mads Kiilerich <mads@kiilerich.com>
parents:
17882
diff
changeset
|
594 abort: Permission denied: '../a' |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
595 [255] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
596 $ cd .. |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
597 $ chmod 700 a |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
598 $ rm -r a b |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
599 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
600 #endif |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
601 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
602 |
16898
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
603 #if fifo |
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
604 |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
605 Source of wrong type |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
606 |
16898
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
607 $ mkfifo a |
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
608 $ hg clone a b |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
609 abort: repository a not found! |
16898
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
610 [255] |
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
611 $ rm a |
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
612 |
bb91c602d4ad
tests: change odd uses of 'if hghave' to #if
Mads Kiilerich <mads@kiilerich.com>
parents:
16847
diff
changeset
|
613 #endif |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
614 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
615 Default destination, same directory |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
616 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
617 $ hg init q |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
618 $ hg clone q |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
619 destination directory: q |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
620 abort: destination 'q' is not empty |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
621 [255] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
622 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
623 destination directory not empty |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
624 |
17345
4f8054d3171b
check-code: fix check for trailing whitespace on sh command lines
Mads Kiilerich <mads@kiilerich.com>
parents:
17307
diff
changeset
|
625 $ mkdir a |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
626 $ echo stuff > a/a |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
627 $ hg clone q a |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
628 abort: destination 'a' is not empty |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
629 [255] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
630 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
631 |
20008
e54a078153f7
tests: skip tests that require not having root (issue4089)
Matt Mackall <mpm@selenic.com>
parents:
18227
diff
changeset
|
632 #if unix-permissions no-root |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
633 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
634 leave existing directory in place after clone failure |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
635 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
636 $ hg init c |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
637 $ cd c |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
638 $ echo c > c |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
639 $ hg commit -A -m test |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
640 adding c |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
641 $ chmod -rx .hg/store/data |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
642 $ cd .. |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
643 $ mkdir d |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
644 $ hg clone c d 2> err |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
645 [255] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
646 $ test -d d |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
647 $ test -d d/.hg |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
648 [1] |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
649 |
17424
e7cfe3587ea4
fix trivial spelling errors
Mads Kiilerich <mads@kiilerich.com>
parents:
17345
diff
changeset
|
650 re-enable perm to allow deletion |
16847
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
651 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
652 $ chmod +rx c/.hg/store/data |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
653 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
654 #endif |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
655 |
cda5402b1739
tests: roll test-clone-failure.t into test-clone.t
Adrian Buehlmann <adrian@cadifra.com>
parents:
15623
diff
changeset
|
656 $ cd .. |
20825
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
657 |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
658 Test clone from the repository in (emulated) revlog format 0 (issue4203): |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
659 |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
660 $ mkdir issue4203 |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
661 $ mkdir -p src/.hg |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
662 $ echo foo > src/foo |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
663 $ hg -R src add src/foo |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
664 $ hg -R src commit -m '#0' |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
665 $ hg -R src log -q |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
666 0:e1bab28bca43 |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
667 $ hg clone -U -q src dst |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
668 $ hg -R dst log -q |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
669 0:e1bab28bca43 |
dda11e799529
hg: use "os.path.join()" to join path components which may be empty (issue4203)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20008
diff
changeset
|
670 $ cd .. |