Show More
@@ -37,7 +37,6 b' from . import (' | |||||
37 | phases, |
|
37 | phases, | |
38 | pycompat, |
|
38 | pycompat, | |
39 | registrar, |
|
39 | registrar, | |
40 | repair, |
|
|||
41 | revlog, |
|
40 | revlog, | |
42 | revset, |
|
41 | revset, | |
43 | scmutil, |
|
42 | scmutil, | |
@@ -2749,7 +2748,6 b' def amend(ui, repo, commitfunc, old, ext' | |||||
2749 |
|
2748 | |||
2750 | ui.note(_('amending changeset %s\n') % old) |
|
2749 | ui.note(_('amending changeset %s\n') % old) | |
2751 | base = old.p1() |
|
2750 | base = old.p1() | |
2752 | createmarkers = obsolete.isenabled(repo, obsolete.createmarkersopt) |
|
|||
2753 |
|
2751 | |||
2754 | newid = None |
|
2752 | newid = None | |
2755 | with repo.wlock(), repo.lock(): |
|
2753 | with repo.wlock(), repo.lock(): | |
@@ -2890,32 +2888,10 b' def amend(ui, repo, commitfunc, old, ext' | |||||
2890 | if newid != old.node(): |
|
2888 | if newid != old.node(): | |
2891 | # Reroute the working copy parent to the new changeset |
|
2889 | # Reroute the working copy parent to the new changeset | |
2892 | repo.setparents(newid, nullid) |
|
2890 | repo.setparents(newid, nullid) | |
2893 |
|
2891 | mapping = {old.node(): (newid,)} | ||
2894 | # Move bookmarks from old parent to amend commit |
|
2892 | if node: | |
2895 | bms = repo.nodebookmarks(old.node()) |
|
2893 | mapping[node] = () | |
2896 | if bms: |
|
2894 | scmutil.cleanupnodes(repo, mapping, 'amend') | |
2897 | marks = repo._bookmarks |
|
|||
2898 | for bm in bms: |
|
|||
2899 | ui.debug('moving bookmarks %r from %s to %s\n' % |
|
|||
2900 | (marks, old.hex(), hex(newid))) |
|
|||
2901 | marks[bm] = newid |
|
|||
2902 | marks.recordchange(tr) |
|
|||
2903 | #commit the whole amend process |
|
|||
2904 | if createmarkers: |
|
|||
2905 | # mark the new changeset as successor of the rewritten one |
|
|||
2906 | new = repo[newid] |
|
|||
2907 | obs = [(old, (new,))] |
|
|||
2908 | if node: |
|
|||
2909 | obs.append((ctx, ())) |
|
|||
2910 |
|
||||
2911 | obsolete.createmarkers(repo, obs, operation='amend') |
|
|||
2912 | if not createmarkers and newid != old.node(): |
|
|||
2913 | # Strip the intermediate commit (if there was one) and the amended |
|
|||
2914 | # commit |
|
|||
2915 | if node: |
|
|||
2916 | ui.note(_('stripping intermediate changeset %s\n') % ctx) |
|
|||
2917 | ui.note(_('stripping amended changeset %s\n') % old) |
|
|||
2918 | repair.strip(ui, repo, old.node(), topic='amend-backup') |
|
|||
2919 | return newid |
|
2895 | return newid | |
2920 |
|
2896 | |||
2921 | def commiteditor(repo, ctx, subs, editform=''): |
|
2897 | def commiteditor(repo, ctx, subs, editform=''): |
@@ -162,7 +162,7 b' mv/rm/add' | |||||
162 | R a.txt |
|
162 | R a.txt | |
163 | $ hg commit --amend -m 'amended' |
|
163 | $ hg commit --amend -m 'amended' | |
164 | detected move of 1 files |
|
164 | detected move of 1 files | |
165 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
165 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
166 | $ hg status --change . -C |
|
166 | $ hg status --change . -C | |
167 | A b.txt |
|
167 | A b.txt | |
168 | a.txt |
|
168 | a.txt | |
@@ -185,7 +185,7 b' mv/rm/add/modif' | |||||
185 | R a.txt |
|
185 | R a.txt | |
186 | $ hg commit --amend -m 'amended' |
|
186 | $ hg commit --amend -m 'amended' | |
187 | detected move of 1 files |
|
187 | detected move of 1 files | |
188 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
188 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
189 | $ hg status --change . -C |
|
189 | $ hg status --change . -C | |
190 | A b.txt |
|
190 | A b.txt | |
191 | a.txt |
|
191 | a.txt | |
@@ -207,7 +207,7 b' mv/rm/add/modif' | |||||
207 | A b.txt |
|
207 | A b.txt | |
208 | R a.txt |
|
208 | R a.txt | |
209 | $ hg commit --amend -m 'amended' |
|
209 | $ hg commit --amend -m 'amended' | |
210 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
210 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
211 | $ hg status --change . -C |
|
211 | $ hg status --change . -C | |
212 | A b.txt |
|
212 | A b.txt | |
213 | A c.txt |
|
213 | A c.txt | |
@@ -229,7 +229,7 b' mv/rm/add/modif/changethreshold' | |||||
229 | R a.txt |
|
229 | R a.txt | |
230 | $ hg commit --amend --config automv.similarity='60' -m 'amended' |
|
230 | $ hg commit --amend --config automv.similarity='60' -m 'amended' | |
231 | detected move of 1 files |
|
231 | detected move of 1 files | |
232 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
232 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
233 | $ hg status --change . -C |
|
233 | $ hg status --change . -C | |
234 | A b.txt |
|
234 | A b.txt | |
235 | a.txt |
|
235 | a.txt | |
@@ -248,7 +248,7 b' mv' | |||||
248 | ! a.txt |
|
248 | ! a.txt | |
249 | ? b.txt |
|
249 | ? b.txt | |
250 | $ hg commit --amend -m 'amended' |
|
250 | $ hg commit --amend -m 'amended' | |
251 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
251 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
252 | $ hg status -C |
|
252 | $ hg status -C | |
253 | ! a.txt |
|
253 | ! a.txt | |
254 | ? b.txt |
|
254 | ? b.txt | |
@@ -270,7 +270,7 b' mv/rm/add/notincommitfiles' | |||||
270 | A d.txt |
|
270 | A d.txt | |
271 | R a.txt |
|
271 | R a.txt | |
272 | $ hg commit --amend -m 'amended' d.txt |
|
272 | $ hg commit --amend -m 'amended' d.txt | |
273 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
273 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
274 | $ hg status --change . -C |
|
274 | $ hg status --change . -C | |
275 | A c.txt |
|
275 | A c.txt | |
276 | A d.txt |
|
276 | A d.txt | |
@@ -279,7 +279,7 b' mv/rm/add/notincommitfiles' | |||||
279 | R a.txt |
|
279 | R a.txt | |
280 | $ hg commit --amend -m 'amended' |
|
280 | $ hg commit --amend -m 'amended' | |
281 | detected move of 1 files |
|
281 | detected move of 1 files | |
282 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
282 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
283 | $ hg status --change . -C |
|
283 | $ hg status --change . -C | |
284 | A b.txt |
|
284 | A b.txt | |
285 | a.txt |
|
285 | a.txt | |
@@ -301,7 +301,7 b' mv/rm/add/--no-automv' | |||||
301 | A b.txt |
|
301 | A b.txt | |
302 | R a.txt |
|
302 | R a.txt | |
303 | $ hg commit --amend -m 'amended' --no-automv |
|
303 | $ hg commit --amend -m 'amended' --no-automv | |
304 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
304 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
305 | $ hg status --change . -C |
|
305 | $ hg status --change . -C | |
306 | A b.txt |
|
306 | A b.txt | |
307 | A c.txt |
|
307 | A c.txt | |
@@ -322,7 +322,7 b' mv/rm/commit/add/amend' | |||||
322 | $ hg commit -m "removed a" |
|
322 | $ hg commit -m "removed a" | |
323 | $ hg add b.txt |
|
323 | $ hg add b.txt | |
324 | $ hg commit --amend -m 'amended' |
|
324 | $ hg commit --amend -m 'amended' | |
325 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend |
|
325 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-amend.hg (glob) | |
326 | $ hg status --change . -C |
|
326 | $ hg status --change . -C | |
327 | A b.txt |
|
327 | A b.txt | |
328 | R a.txt |
|
328 | R a.txt |
@@ -40,7 +40,7 b' Amending changeset with changes in worki' | |||||
40 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit --amend -m 'amend base1' |
|
40 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit --amend -m 'amend base1' | |
41 | pretxncommit 43f1ba15f28a50abf0aae529cf8a16bfced7b149 |
|
41 | pretxncommit 43f1ba15f28a50abf0aae529cf8a16bfced7b149 | |
42 | 43f1ba15f28a tip |
|
42 | 43f1ba15f28a tip | |
43 |
saved backup bundle to $TESTTMP/.hg/strip-backup/489edb5b847d-f1bf3ab8-amend |
|
43 | saved backup bundle to $TESTTMP/.hg/strip-backup/489edb5b847d-f1bf3ab8-amend.hg (glob) | |
44 | $ echo 'pretxncommit.foo = ' >> $HGRCPATH |
|
44 | $ echo 'pretxncommit.foo = ' >> $HGRCPATH | |
45 | $ hg diff -c . |
|
45 | $ hg diff -c . | |
46 | diff -r ad120869acf0 -r 43f1ba15f28a a |
|
46 | diff -r ad120869acf0 -r 43f1ba15f28a a | |
@@ -93,7 +93,7 b' Check proper abort for empty message' | |||||
93 |
|
93 | |||
94 | Add new file: |
|
94 | Add new file: | |
95 | $ hg ci --amend -m 'amend base1 new file' |
|
95 | $ hg ci --amend -m 'amend base1 new file' | |
96 |
saved backup bundle to $TESTTMP/.hg/strip-backup/43f1ba15f28a-7a3b3496-amend |
|
96 | saved backup bundle to $TESTTMP/.hg/strip-backup/43f1ba15f28a-7a3b3496-amend.hg (glob) | |
97 |
|
97 | |||
98 | Remove file that was added in amended commit: |
|
98 | Remove file that was added in amended commit: | |
99 | (and test logfile option) |
|
99 | (and test logfile option) | |
@@ -102,7 +102,7 b' Remove file that was added in amended co' | |||||
102 | $ hg rm b |
|
102 | $ hg rm b | |
103 | $ echo 'amend base1 remove new file' > ../logfile |
|
103 | $ echo 'amend base1 remove new file' > ../logfile | |
104 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg ci --amend --logfile ../logfile |
|
104 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg ci --amend --logfile ../logfile | |
105 |
saved backup bundle to $TESTTMP/.hg/strip-backup/b8e3cb2b3882-0b55739a-amend |
|
105 | saved backup bundle to $TESTTMP/.hg/strip-backup/b8e3cb2b3882-0b55739a-amend.hg (glob) | |
106 |
|
106 | |||
107 | $ hg cat b |
|
107 | $ hg cat b | |
108 | b: no such file in rev 74609c7f506e |
|
108 | b: no such file in rev 74609c7f506e | |
@@ -117,13 +117,12 b' No changes, just a different message:' | |||||
117 | a |
|
117 | a | |
118 | committing manifest |
|
118 | committing manifest | |
119 | committing changelog |
|
119 | committing changelog | |
120 | stripping amended changeset 74609c7f506e |
|
|||
121 | 1 changesets found |
|
120 | 1 changesets found | |
122 | uncompressed size of bundle content: |
|
121 | uncompressed size of bundle content: | |
123 | 254 (changelog) |
|
122 | 254 (changelog) | |
124 | 163 (manifests) |
|
123 | 163 (manifests) | |
125 | 129 a |
|
124 | 129 a | |
126 |
saved backup bundle to $TESTTMP/.hg/strip-backup/74609c7f506e-1bfde511-amend |
|
125 | saved backup bundle to $TESTTMP/.hg/strip-backup/74609c7f506e-1bfde511-amend.hg (glob) | |
127 | 1 changesets found |
|
126 | 1 changesets found | |
128 | uncompressed size of bundle content: |
|
127 | uncompressed size of bundle content: | |
129 | 250 (changelog) |
|
128 | 250 (changelog) | |
@@ -169,10 +168,10 b' Test -u/-d:' | |||||
169 | > EOF |
|
168 | > EOF | |
170 | $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -u foo -d '1 0' |
|
169 | $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -u foo -d '1 0' | |
171 | HGEDITFORM=commit.amend.normal |
|
170 | HGEDITFORM=commit.amend.normal | |
172 |
saved backup bundle to $TESTTMP/.hg/strip-backup/1cd866679df8-5f5bcb85-amend |
|
171 | saved backup bundle to $TESTTMP/.hg/strip-backup/1cd866679df8-5f5bcb85-amend.hg (glob) | |
173 | $ echo a >> a |
|
172 | $ echo a >> a | |
174 | $ hg ci --amend -u foo -d '1 0' |
|
173 | $ hg ci --amend -u foo -d '1 0' | |
175 |
saved backup bundle to $TESTTMP/.hg/strip-backup/780e6f23e03d-83b10a27-amend |
|
174 | saved backup bundle to $TESTTMP/.hg/strip-backup/780e6f23e03d-83b10a27-amend.hg (glob) | |
176 | $ hg log -r . |
|
175 | $ hg log -r . | |
177 | changeset: 1:5f357c7560ab |
|
176 | changeset: 1:5f357c7560ab | |
178 | tag: tip |
|
177 | tag: tip | |
@@ -261,13 +260,12 b' then, test editing custom commit message' | |||||
261 | a |
|
260 | a | |
262 | committing manifest |
|
261 | committing manifest | |
263 | committing changelog |
|
262 | committing changelog | |
264 | stripping amended changeset 5f357c7560ab |
|
|||
265 | 1 changesets found |
|
263 | 1 changesets found | |
266 | uncompressed size of bundle content: |
|
264 | uncompressed size of bundle content: | |
267 | 249 (changelog) |
|
265 | 249 (changelog) | |
268 | 163 (manifests) |
|
266 | 163 (manifests) | |
269 | 131 a |
|
267 | 131 a | |
270 |
saved backup bundle to $TESTTMP/.hg/strip-backup/5f357c7560ab-e7c84ade-amend |
|
268 | saved backup bundle to $TESTTMP/.hg/strip-backup/5f357c7560ab-e7c84ade-amend.hg (glob) | |
271 | 1 changesets found |
|
269 | 1 changesets found | |
272 | uncompressed size of bundle content: |
|
270 | uncompressed size of bundle content: | |
273 | 257 (changelog) |
|
271 | 257 (changelog) | |
@@ -303,14 +301,12 b' Same, but with changes in working dir (d' | |||||
303 | a |
|
301 | a | |
304 | committing manifest |
|
302 | committing manifest | |
305 | committing changelog |
|
303 | committing changelog | |
306 | stripping intermediate changeset a0ea9b1a4c8c |
|
|||
307 | stripping amended changeset 7ab3bf440b54 |
|
|||
308 | 2 changesets found |
|
304 | 2 changesets found | |
309 | uncompressed size of bundle content: |
|
305 | uncompressed size of bundle content: | |
310 | 464 (changelog) |
|
306 | 464 (changelog) | |
311 | 322 (manifests) |
|
307 | 322 (manifests) | |
312 | 249 a |
|
308 | 249 a | |
313 |
saved backup bundle to $TESTTMP/.hg/strip-backup/7ab3bf440b54-8e3b5088-amend |
|
309 | saved backup bundle to $TESTTMP/.hg/strip-backup/7ab3bf440b54-8e3b5088-amend.hg (glob) | |
314 | 1 changesets found |
|
310 | 1 changesets found | |
315 | uncompressed size of bundle content: |
|
311 | uncompressed size of bundle content: | |
316 | 257 (changelog) |
|
312 | 257 (changelog) | |
@@ -337,13 +333,13 b' Moving bookmarks, preserve active bookma' | |||||
337 | $ hg book book1 |
|
333 | $ hg book book1 | |
338 | $ hg book book2 |
|
334 | $ hg book book2 | |
339 | $ hg ci --amend -m 'move bookmarks' |
|
335 | $ hg ci --amend -m 'move bookmarks' | |
340 |
saved backup bundle to $TESTTMP/.hg/strip-backup/ea22a388757c-e51094db-amend |
|
336 | saved backup bundle to $TESTTMP/.hg/strip-backup/ea22a388757c-e51094db-amend.hg (glob) | |
341 | $ hg book |
|
337 | $ hg book | |
342 | book1 1:6cec5aa930e2 |
|
338 | book1 1:6cec5aa930e2 | |
343 | * book2 1:6cec5aa930e2 |
|
339 | * book2 1:6cec5aa930e2 | |
344 | $ echo a >> a |
|
340 | $ echo a >> a | |
345 | $ hg ci --amend -m 'move bookmarks' |
|
341 | $ hg ci --amend -m 'move bookmarks' | |
346 |
saved backup bundle to $TESTTMP/.hg/strip-backup/6cec5aa930e2-e9b06de4-amend |
|
342 | saved backup bundle to $TESTTMP/.hg/strip-backup/6cec5aa930e2-e9b06de4-amend.hg (glob) | |
347 | $ hg book |
|
343 | $ hg book | |
348 | book1 1:48bb6e53a15f |
|
344 | book1 1:48bb6e53a15f | |
349 | * book2 1:48bb6e53a15f |
|
345 | * book2 1:48bb6e53a15f | |
@@ -379,7 +375,7 b' Moving branches:' | |||||
379 | $ hg branch default -f |
|
375 | $ hg branch default -f | |
380 | marked working directory as branch default |
|
376 | marked working directory as branch default | |
381 | $ hg ci --amend -m 'back to default' |
|
377 | $ hg ci --amend -m 'back to default' | |
382 |
saved backup bundle to $TESTTMP/.hg/strip-backup/8ac881fbf49d-fd962fef-amend |
|
378 | saved backup bundle to $TESTTMP/.hg/strip-backup/8ac881fbf49d-fd962fef-amend.hg (glob) | |
383 | $ hg branches |
|
379 | $ hg branches | |
384 | default 2:ce12b0b57d46 |
|
380 | default 2:ce12b0b57d46 | |
385 |
|
381 | |||
@@ -395,7 +391,7 b' Close branch:' | |||||
395 | $ echo b >> b |
|
391 | $ echo b >> b | |
396 | $ hg ci -mb |
|
392 | $ hg ci -mb | |
397 | $ hg ci --amend --close-branch -m 'closing branch foo' |
|
393 | $ hg ci --amend --close-branch -m 'closing branch foo' | |
398 |
saved backup bundle to $TESTTMP/.hg/strip-backup/c962248fa264-6701c392-amend |
|
394 | saved backup bundle to $TESTTMP/.hg/strip-backup/c962248fa264-6701c392-amend.hg (glob) | |
399 |
|
395 | |||
400 | Same thing, different code path: |
|
396 | Same thing, different code path: | |
401 |
|
397 | |||
@@ -404,7 +400,7 b' Same thing, different code path:' | |||||
404 | reopening closed branch head 4 |
|
400 | reopening closed branch head 4 | |
405 | $ echo b >> b |
|
401 | $ echo b >> b | |
406 | $ hg ci --amend --close-branch |
|
402 | $ hg ci --amend --close-branch | |
407 |
saved backup bundle to $TESTTMP/.hg/strip-backup/027371728205-49c0c55d-amend |
|
403 | saved backup bundle to $TESTTMP/.hg/strip-backup/027371728205-49c0c55d-amend.hg (glob) | |
408 | $ hg branches |
|
404 | $ hg branches | |
409 | default 2:ce12b0b57d46 |
|
405 | default 2:ce12b0b57d46 | |
410 |
|
406 | |||
@@ -425,7 +421,7 b' Follow copies/renames:' | |||||
425 | $ hg ci -m 'b -> c' |
|
421 | $ hg ci -m 'b -> c' | |
426 | $ hg mv c d |
|
422 | $ hg mv c d | |
427 | $ hg ci --amend -m 'b -> d' |
|
423 | $ hg ci --amend -m 'b -> d' | |
428 |
saved backup bundle to $TESTTMP/.hg/strip-backup/b8c6eac7f12e-adaaa8b1-amend |
|
424 | saved backup bundle to $TESTTMP/.hg/strip-backup/b8c6eac7f12e-adaaa8b1-amend.hg (glob) | |
429 | $ hg st --rev '.^' --copies d |
|
425 | $ hg st --rev '.^' --copies d | |
430 | A d |
|
426 | A d | |
431 | b |
|
427 | b | |
@@ -433,7 +429,7 b' Follow copies/renames:' | |||||
433 | $ hg ci -m 'e = d' |
|
429 | $ hg ci -m 'e = d' | |
434 | $ hg cp e f |
|
430 | $ hg cp e f | |
435 | $ hg ci --amend -m 'f = d' |
|
431 | $ hg ci --amend -m 'f = d' | |
436 |
saved backup bundle to $TESTTMP/.hg/strip-backup/7f9761d65613-d37aa788-amend |
|
432 | saved backup bundle to $TESTTMP/.hg/strip-backup/7f9761d65613-d37aa788-amend.hg (glob) | |
437 | $ hg st --rev '.^' --copies f |
|
433 | $ hg st --rev '.^' --copies f | |
438 | A f |
|
434 | A f | |
439 | d |
|
435 | d | |
@@ -444,7 +440,7 b' Follow copies/renames:' | |||||
444 | $ hg cp a f |
|
440 | $ hg cp a f | |
445 | $ mv f.orig f |
|
441 | $ mv f.orig f | |
446 | $ hg ci --amend -m replacef |
|
442 | $ hg ci --amend -m replacef | |
447 |
saved backup bundle to $TESTTMP/.hg/strip-backup/9e8c5f7e3d95-90259f67-amend |
|
443 | saved backup bundle to $TESTTMP/.hg/strip-backup/9e8c5f7e3d95-90259f67-amend.hg (glob) | |
448 | $ hg st --change . --copies |
|
444 | $ hg st --change . --copies | |
449 | $ hg log -r . --template "{file_copies}\n" |
|
445 | $ hg log -r . --template "{file_copies}\n" | |
450 |
|
446 | |||
@@ -456,7 +452,7 b' Move added file (issue3410):' | |||||
456 | adding g |
|
452 | adding g | |
457 | $ hg mv g h |
|
453 | $ hg mv g h | |
458 | $ hg ci --amend |
|
454 | $ hg ci --amend | |
459 |
saved backup bundle to $TESTTMP/.hg/strip-backup/24aa8eacce2b-7059e0f1-amend |
|
455 | saved backup bundle to $TESTTMP/.hg/strip-backup/24aa8eacce2b-7059e0f1-amend.hg (glob) | |
460 | $ hg st --change . --copies h |
|
456 | $ hg st --change . --copies h | |
461 | A h |
|
457 | A h | |
462 | $ hg log -r . --template "{file_copies}\n" |
|
458 | $ hg log -r . --template "{file_copies}\n" | |
@@ -476,11 +472,11 b' Preserve extra dict (issue3430):' | |||||
476 | $ echo a >> a |
|
472 | $ echo a >> a | |
477 | $ hg ci -ma |
|
473 | $ hg ci -ma | |
478 | $ hg ci --amend -m "a'" |
|
474 | $ hg ci --amend -m "a'" | |
479 |
saved backup bundle to $TESTTMP/.hg/strip-backup/3837aa2a2fdb-2be01fd1-amend |
|
475 | saved backup bundle to $TESTTMP/.hg/strip-backup/3837aa2a2fdb-2be01fd1-amend.hg (glob) | |
480 | $ hg log -r . --template "{branch}\n" |
|
476 | $ hg log -r . --template "{branch}\n" | |
481 | a |
|
477 | a | |
482 | $ hg ci --amend -m "a''" |
|
478 | $ hg ci --amend -m "a''" | |
483 |
saved backup bundle to $TESTTMP/.hg/strip-backup/c05c06be7514-ed28c4cd-amend |
|
479 | saved backup bundle to $TESTTMP/.hg/strip-backup/c05c06be7514-ed28c4cd-amend.hg (glob) | |
484 | $ hg log -r . --template "{branch}\n" |
|
480 | $ hg log -r . --template "{branch}\n" | |
485 | a |
|
481 | a | |
486 |
|
482 | |||
@@ -497,7 +493,7 b" first graft something so there's an addi" | |||||
497 | $ hg graft 12 |
|
493 | $ hg graft 12 | |
498 | grafting 12:2647734878ef "fork" (tip) |
|
494 | grafting 12:2647734878ef "fork" (tip) | |
499 | $ hg ci --amend -m 'graft amend' |
|
495 | $ hg ci --amend -m 'graft amend' | |
500 |
saved backup bundle to $TESTTMP/.hg/strip-backup/bd010aea3f39-eedb103b-amend |
|
496 | saved backup bundle to $TESTTMP/.hg/strip-backup/bd010aea3f39-eedb103b-amend.hg (glob) | |
501 | $ hg log -r . --debug | grep extra |
|
497 | $ hg log -r . --debug | grep extra | |
502 | extra: amend_source=bd010aea3f39f3fb2a2f884b9ccb0471cd77398e |
|
498 | extra: amend_source=bd010aea3f39f3fb2a2f884b9ccb0471cd77398e | |
503 | extra: branch=a |
|
499 | extra: branch=a |
@@ -206,7 +206,7 b' Amend option works' | |||||
206 | > X |
|
206 | > X | |
207 | > EOF |
|
207 | > EOF | |
208 | $ hg commit -i -m "newly added file" -d "0 0" |
|
208 | $ hg commit -i -m "newly added file" -d "0 0" | |
209 |
saved backup bundle to $TESTTMP/a/.hg/strip-backup/2b0e9be4d336-28bbe4e2-amend |
|
209 | saved backup bundle to $TESTTMP/a/.hg/strip-backup/2b0e9be4d336-28bbe4e2-amend.hg (glob) | |
210 | $ hg diff -c . |
|
210 | $ hg diff -c . | |
211 | diff -r a6735021574d -r c1d239d165ae x |
|
211 | diff -r a6735021574d -r c1d239d165ae x | |
212 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
212 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
@@ -862,7 +862,7 b' Committing a empty commit does not dupli' | |||||
862 | $ hg commit -Aqm 'pre-empty commit' |
|
862 | $ hg commit -Aqm 'pre-empty commit' | |
863 | $ hg rm z |
|
863 | $ hg rm z | |
864 | $ hg commit --amend -m 'empty commit' |
|
864 | $ hg commit --amend -m 'empty commit' | |
865 |
saved backup bundle to $TESTTMP/grafted-dir-repo-clone/.hg/strip-backup/cb99d5717cea-de37743b-amend |
|
865 | saved backup bundle to $TESTTMP/grafted-dir-repo-clone/.hg/strip-backup/cb99d5717cea-de37743b-amend.hg (glob) | |
866 | $ hg log -r 'tip + tip^' -T '{manifest}\n' |
|
866 | $ hg log -r 'tip + tip^' -T '{manifest}\n' | |
867 | 1:678d3574b88c |
|
867 | 1:678d3574b88c | |
868 | 1:678d3574b88c |
|
868 | 1:678d3574b88c |
General Comments 0
You need to be logged in to leave comments.
Login now