Mercurial > evolve
comparison tests/test-stabilize-order.t @ 1510:b86eea66ed02
evolve: be more complete about copying extra from old revisions
For 'hg evolve' we want to copy all extra-level metadata except for
branch. This keeps the experimental topics extension from getting
obliterated by evolve runs.
Many hashes in tests changed due to some extra data coming along for
the ride in various places, but no functionality that was tested. It's
plausible that this copies too much metadata - maybe we should be
dropping rebase_src or convert_revision as well. Right now no tools do
that, so I'm biasing towards preserving everything except branch when
copying metadata for now.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 29 Sep 2015 15:40:28 -0400 |
parents | 0b714c4ad9ff |
children | 740d755a432d |
comparison
equal
deleted
inserted
replaced
1509:405be3783fbc | 1510:b86eea66ed02 |
---|---|
71 getting b | 71 getting b |
72 committing files: | 72 committing files: |
73 b | 73 b |
74 committing manifest | 74 committing manifest |
75 committing changelog | 75 committing changelog |
76 working directory is now at bede829dd2d3 | 76 working directory is now at 81b8bbcd5892 |
77 $ glog | 77 $ glog |
78 @ 8:bede829dd2d3@default(draft) addb | 78 @ 8:81b8bbcd5892@default(draft) addb |
79 | | 79 | |
80 o 7:005fe5914f78@default(draft) adda | 80 o 7:005fe5914f78@default(draft) adda |
81 | | 81 | |
82 | o 3:7a7552255fb5@default(draft) addc | 82 | o 3:7a7552255fb5@default(draft) addc |
83 | | | 83 | | |
94 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 94 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
95 $ hg debugobsolete > successors.old | 95 $ hg debugobsolete > successors.old |
96 $ hg evolve -v | 96 $ hg evolve -v |
97 move:[3] addc | 97 move:[3] addc |
98 atop:[8] addb | 98 atop:[8] addb |
99 hg rebase -r 7a7552255fb5 -d bede829dd2d3 | 99 hg rebase -r 7a7552255fb5 -d 81b8bbcd5892 |
100 resolving manifests | 100 resolving manifests |
101 getting b | 101 getting b |
102 resolving manifests | 102 resolving manifests |
103 getting c | 103 getting c |
104 committing files: | 104 committing files: |
105 c | 105 c |
106 committing manifest | 106 committing manifest |
107 committing changelog | 107 committing changelog |
108 working directory is now at 65095d7d0dd5 | 108 working directory is now at 0f691739f917 |
109 $ hg debugobsolete > successors.new | 109 $ hg debugobsolete > successors.new |
110 $ diff -u successors.old successors.new | 110 $ diff -u successors.old successors.new |
111 --- successors.old* (glob) | 111 --- successors.old* (glob) |
112 +++ successors.new* (glob) | 112 +++ successors.new* (glob) |
113 @@ -3,3 +3,4 @@ | 113 @@ -3,3 +3,4 @@ |
114 93418d2c0979643ad446f621195e78720edb05b4 005fe5914f78e8bc64c7eba28117b0b1fa210d0d 0 (*) {'user': 'test'} (glob) | 114 93418d2c0979643ad446f621195e78720edb05b4 005fe5914f78e8bc64c7eba28117b0b1fa210d0d 0 (*) {'user': 'test'} (glob) |
115 7a7d76dc97c57751de9e80f61ed2a639bd03cd24 0 {93418d2c0979643ad446f621195e78720edb05b4} (*) {'user': 'test'} (glob) | 115 7a7d76dc97c57751de9e80f61ed2a639bd03cd24 0 {93418d2c0979643ad446f621195e78720edb05b4} (*) {'user': 'test'} (glob) |
116 22619daeed78036f80fbd326b6852519c4f0c25e bede829dd2d3b2ae9bf198c23432b250dc964458 0 (*) {'user': 'test'} (glob) | 116 22619daeed78036f80fbd326b6852519c4f0c25e 81b8bbcd5892841efed41433d7a5e9df922396cb 0 (*) {'user': 'test'} (glob) |
117 +7a7552255fb5f8bd745e46fba6f0ca633a4dd716 65095d7d0dd5e4f15503bb7b1f433a5fe9bac052 0 (*) {'user': 'test'} (glob) | 117 +7a7552255fb5f8bd745e46fba6f0ca633a4dd716 0f691739f91762462bf8ba21f35fdf71fe64310e 0 (*) {'user': 'test'} (glob) |
118 [1] | 118 [1] |
119 | 119 |
120 | 120 |
121 | 121 |
122 $ glog | 122 $ glog |
123 @ 9:65095d7d0dd5@default(draft) addc | 123 @ 9:0f691739f917@default(draft) addc |
124 | | 124 | |
125 o 8:bede829dd2d3@default(draft) addb | 125 o 8:81b8bbcd5892@default(draft) addb |
126 | | 126 | |
127 o 7:005fe5914f78@default(draft) adda | 127 o 7:005fe5914f78@default(draft) adda |
128 | | 128 | |
129 o 0:c471ef929e6a@default(draft) addroot | 129 o 0:c471ef929e6a@default(draft) addroot |
130 | 130 |
138 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 138 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
139 $ echo b >> b | 139 $ echo b >> b |
140 $ hg amend | 140 $ hg amend |
141 1 new unstable changesets | 141 1 new unstable changesets |
142 $ glog | 142 $ glog |
143 @ 11:036cf654e942@default(draft) addb | 143 @ 11:7a68bc4596ea@default(draft) addb |
144 | | 144 | |
145 | o 9:65095d7d0dd5@default(draft) addc | 145 | o 9:0f691739f917@default(draft) addc |
146 | | | 146 | | |
147 | x 8:bede829dd2d3@default(draft) addb | 147 | x 8:81b8bbcd5892@default(draft) addb |
148 |/ | 148 |/ |
149 o 7:005fe5914f78@default(draft) adda | 149 o 7:005fe5914f78@default(draft) adda |
150 | | 150 | |
151 o 0:c471ef929e6a@default(draft) addroot | 151 o 0:c471ef929e6a@default(draft) addroot |
152 | 152 |
157 (1 other unstable in the repository, do you want --any or --rev) | 157 (1 other unstable in the repository, do you want --any or --rev) |
158 [2] | 158 [2] |
159 $ hg evolve --any -v | 159 $ hg evolve --any -v |
160 move:[9] addc | 160 move:[9] addc |
161 atop:[11] addb | 161 atop:[11] addb |
162 hg rebase -r 65095d7d0dd5 -d 036cf654e942 | 162 hg rebase -r 0f691739f917 -d 7a68bc4596ea |
163 resolving manifests | 163 resolving manifests |
164 removing c | 164 removing c |
165 getting b | 165 getting b |
166 resolving manifests | 166 resolving manifests |
167 getting c | 167 getting c |
168 committing files: | 168 committing files: |
169 c | 169 c |
170 committing manifest | 170 committing manifest |
171 committing changelog | 171 committing changelog |
172 working directory is now at e99ecf51c867 | 172 working directory is now at 2256dae6521f |
173 $ glog | 173 $ glog |
174 @ 12:e99ecf51c867@default(draft) addc | 174 @ 12:2256dae6521f@default(draft) addc |
175 | | 175 | |
176 o 11:036cf654e942@default(draft) addb | 176 o 11:7a68bc4596ea@default(draft) addb |
177 | | 177 | |
178 o 7:005fe5914f78@default(draft) adda | 178 o 7:005fe5914f78@default(draft) adda |
179 | | 179 | |
180 o 0:c471ef929e6a@default(draft) addroot | 180 o 0:c471ef929e6a@default(draft) addroot |
181 | 181 |
196 $ hg up .^ | 196 $ hg up .^ |
197 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 197 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
198 $ hg commit --amend -m "newmessage" | 198 $ hg commit --amend -m "newmessage" |
199 2 new unstable changesets | 199 2 new unstable changesets |
200 $ hg log -G | 200 $ hg log -G |
201 @ changeset: 15:49773ccde390 | 201 @ changeset: 15:f83a0bce03e4 |
202 | tag: tip | 202 | tag: tip |
203 | parent: 11:036cf654e942 | 203 | parent: 11:7a68bc4596ea |
204 | user: test | 204 | user: test |
205 | date: Thu Jan 01 00:00:00 1970 +0000 | 205 | date: Thu Jan 01 00:00:00 1970 +0000 |
206 | summary: newmessage | 206 | summary: newmessage |
207 | | 207 | |
208 | o changeset: 14:a9892777b519 | 208 | o changeset: 14:fa68011f392e |
209 | | parent: 12:e99ecf51c867 | 209 | | parent: 12:2256dae6521f |
210 | | user: test | 210 | | user: test |
211 | | date: Thu Jan 01 00:00:00 1970 +0000 | 211 | | date: Thu Jan 01 00:00:00 1970 +0000 |
212 | | summary: secondambiguous | 212 | | summary: secondambiguous |
213 | | | 213 | | |
214 | | o changeset: 13:0b6e26b2472d | 214 | | o changeset: 13:bdc003b6eec2 |
215 | |/ user: test | 215 | |/ user: test |
216 | | date: Thu Jan 01 00:00:00 1970 +0000 | 216 | | date: Thu Jan 01 00:00:00 1970 +0000 |
217 | | summary: firstambiguous | 217 | | summary: firstambiguous |
218 | | | 218 | | |
219 | x changeset: 12:e99ecf51c867 | 219 | x changeset: 12:2256dae6521f |
220 |/ user: test | 220 |/ user: test |
221 | date: Thu Jan 01 00:00:00 1970 +0000 | 221 | date: Thu Jan 01 00:00:00 1970 +0000 |
222 | summary: addc | 222 | summary: addc |
223 | | 223 | |
224 o changeset: 11:036cf654e942 | 224 o changeset: 11:7a68bc4596ea |
225 | parent: 7:005fe5914f78 | 225 | parent: 7:005fe5914f78 |
226 | user: test | 226 | user: test |
227 | date: Thu Jan 01 00:00:00 1970 +0000 | 227 | date: Thu Jan 01 00:00:00 1970 +0000 |
228 | summary: addb | 228 | summary: addb |
229 | | 229 | |