##// END OF EJS Templates
spelling: Construct
timeless@mozdev.org -
r17477:b1dfca74 default
parent child Browse files
Show More
@@ -1,158 +1,158
1 $ cat >> $HGRCPATH <<EOF
1 $ cat >> $HGRCPATH <<EOF
2 > [extensions]
2 > [extensions]
3 > graphlog=
3 > graphlog=
4 > rebase=
4 > rebase=
5 >
5 >
6 > [phases]
6 > [phases]
7 > publish=False
7 > publish=False
8 >
8 >
9 > [alias]
9 > [alias]
10 > tglog = log -G --template "{rev}:{phase} '{desc}' {branches}\n"
10 > tglog = log -G --template "{rev}:{phase} '{desc}' {branches}\n"
11 > EOF
11 > EOF
12
12
13
13
14 $ hg init a
14 $ hg init a
15 $ cd a
15 $ cd a
16
16
17 $ echo c1 > common
17 $ echo c1 > common
18 $ hg add common
18 $ hg add common
19 $ hg ci -m C1
19 $ hg ci -m C1
20
20
21 $ echo c2 >> common
21 $ echo c2 >> common
22 $ hg ci -m C2
22 $ hg ci -m C2
23
23
24 $ echo c3 >> common
24 $ echo c3 >> common
25 $ hg ci -m C3
25 $ hg ci -m C3
26
26
27 $ hg up -q -C 1
27 $ hg up -q -C 1
28
28
29 $ echo l1 >> extra
29 $ echo l1 >> extra
30 $ hg add extra
30 $ hg add extra
31 $ hg ci -m L1
31 $ hg ci -m L1
32 created new head
32 created new head
33
33
34 $ sed -e 's/c2/l2/' common > common.new
34 $ sed -e 's/c2/l2/' common > common.new
35 $ mv common.new common
35 $ mv common.new common
36 $ hg ci -m L2
36 $ hg ci -m L2
37
37
38 $ hg phase --force --secret 2
38 $ hg phase --force --secret 2
39
39
40 $ hg tglog
40 $ hg tglog
41 @ 4:draft 'L2'
41 @ 4:draft 'L2'
42 |
42 |
43 o 3:draft 'L1'
43 o 3:draft 'L1'
44 |
44 |
45 | o 2:secret 'C3'
45 | o 2:secret 'C3'
46 |/
46 |/
47 o 1:draft 'C2'
47 o 1:draft 'C2'
48 |
48 |
49 o 0:draft 'C1'
49 o 0:draft 'C1'
50
50
51
51
52 Conflicting rebase:
52 Conflicting rebase:
53
53
54 $ hg rebase -s 3 -d 2
54 $ hg rebase -s 3 -d 2
55 merging common
55 merging common
56 warning: conflicts during merge.
56 warning: conflicts during merge.
57 merging common incomplete! (edit conflicts, then use 'hg resolve --mark')
57 merging common incomplete! (edit conflicts, then use 'hg resolve --mark')
58 abort: unresolved conflicts (see hg resolve, then hg rebase --continue)
58 abort: unresolved conflicts (see hg resolve, then hg rebase --continue)
59 [255]
59 [255]
60
60
61 Abort:
61 Abort:
62
62
63 $ hg rebase --abort
63 $ hg rebase --abort
64 saved backup bundle to $TESTTMP/a/.hg/strip-backup/*-backup.hg (glob)
64 saved backup bundle to $TESTTMP/a/.hg/strip-backup/*-backup.hg (glob)
65 rebase aborted
65 rebase aborted
66
66
67 $ hg tglog
67 $ hg tglog
68 @ 4:draft 'L2'
68 @ 4:draft 'L2'
69 |
69 |
70 o 3:draft 'L1'
70 o 3:draft 'L1'
71 |
71 |
72 | o 2:secret 'C3'
72 | o 2:secret 'C3'
73 |/
73 |/
74 o 1:draft 'C2'
74 o 1:draft 'C2'
75 |
75 |
76 o 0:draft 'C1'
76 o 0:draft 'C1'
77
77
78 $ cd ..
78 $ cd ..
79
79
80
80
81 Constrcut new repo:
81 Construct new repo:
82
82
83 $ hg init b
83 $ hg init b
84 $ cd b
84 $ cd b
85
85
86 $ echo a > a
86 $ echo a > a
87 $ hg ci -Am A
87 $ hg ci -Am A
88 adding a
88 adding a
89
89
90 $ echo b > b
90 $ echo b > b
91 $ hg ci -Am B
91 $ hg ci -Am B
92 adding b
92 adding b
93
93
94 $ echo c > c
94 $ echo c > c
95 $ hg ci -Am C
95 $ hg ci -Am C
96 adding c
96 adding c
97
97
98 $ hg up -q 0
98 $ hg up -q 0
99
99
100 $ echo b > b
100 $ echo b > b
101 $ hg ci -Am 'B bis'
101 $ hg ci -Am 'B bis'
102 adding b
102 adding b
103 created new head
103 created new head
104
104
105 $ echo c1 > c
105 $ echo c1 > c
106 $ hg ci -Am C1
106 $ hg ci -Am C1
107 adding c
107 adding c
108
108
109 $ hg phase --force --secret 1
109 $ hg phase --force --secret 1
110 $ hg phase --public 1
110 $ hg phase --public 1
111
111
112 Rebase and abort without generating new changesets:
112 Rebase and abort without generating new changesets:
113
113
114 $ hg tglog
114 $ hg tglog
115 @ 4:draft 'C1'
115 @ 4:draft 'C1'
116 |
116 |
117 o 3:draft 'B bis'
117 o 3:draft 'B bis'
118 |
118 |
119 | o 2:secret 'C'
119 | o 2:secret 'C'
120 | |
120 | |
121 | o 1:public 'B'
121 | o 1:public 'B'
122 |/
122 |/
123 o 0:public 'A'
123 o 0:public 'A'
124
124
125 $ hg rebase -b 4 -d 2
125 $ hg rebase -b 4 -d 2
126 merging c
126 merging c
127 warning: conflicts during merge.
127 warning: conflicts during merge.
128 merging c incomplete! (edit conflicts, then use 'hg resolve --mark')
128 merging c incomplete! (edit conflicts, then use 'hg resolve --mark')
129 abort: unresolved conflicts (see hg resolve, then hg rebase --continue)
129 abort: unresolved conflicts (see hg resolve, then hg rebase --continue)
130 [255]
130 [255]
131
131
132 $ hg tglog
132 $ hg tglog
133 @ 4:draft 'C1'
133 @ 4:draft 'C1'
134 |
134 |
135 o 3:draft 'B bis'
135 o 3:draft 'B bis'
136 |
136 |
137 | @ 2:secret 'C'
137 | @ 2:secret 'C'
138 | |
138 | |
139 | o 1:public 'B'
139 | o 1:public 'B'
140 |/
140 |/
141 o 0:public 'A'
141 o 0:public 'A'
142
142
143 $ hg rebase -a
143 $ hg rebase -a
144 rebase aborted
144 rebase aborted
145
145
146 $ hg tglog
146 $ hg tglog
147 @ 4:draft 'C1'
147 @ 4:draft 'C1'
148 |
148 |
149 o 3:draft 'B bis'
149 o 3:draft 'B bis'
150 |
150 |
151 | o 2:secret 'C'
151 | o 2:secret 'C'
152 | |
152 | |
153 | o 1:public 'B'
153 | o 1:public 'B'
154 |/
154 |/
155 o 0:public 'A'
155 o 0:public 'A'
156
156
157
157
158 $ cd ..
158 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now