equal
deleted
inserted
replaced
305 $ hg phase -r . |
305 $ hg phase -r . |
306 18: draft |
306 18: draft |
307 $ hg phase -r ".^" |
307 $ hg phase -r ".^" |
308 12: public |
308 12: public |
309 |
309 |
310 Uncommit leaving an empty changeset |
310 Uncommit with --keep or experimental.uncommit.keep leaves an empty changeset |
311 |
311 |
312 $ cd $TESTTMP |
312 $ cd $TESTTMP |
313 $ hg init repo1 |
313 $ hg init repo1 |
314 $ cd repo1 |
314 $ cd repo1 |
315 $ hg debugdrawdag <<'EOS' |
315 $ hg debugdrawdag <<'EOS' |
325 | |
325 | |
326 | x Q FILES: Q |
326 | x Q FILES: Q |
327 |/ |
327 |/ |
328 o P FILES: P |
328 o P FILES: P |
329 |
329 |
|
330 $ cat >> .hg/hgrc <<EOF |
|
331 > [experimental] |
|
332 > uncommit.keep=True |
|
333 > EOF |
|
334 $ hg ci --amend |
|
335 $ hg uncommit |
|
336 note: keeping empty commit |
|
337 $ hg log -G -T '{desc} FILES: {files}' |
|
338 @ Q FILES: |
|
339 | |
|
340 | x Q FILES: Q |
|
341 |/ |
|
342 o P FILES: P |
|
343 |
330 $ hg status |
344 $ hg status |
331 A Q |
345 A Q |
332 |
346 $ hg ci --amend |
|
347 $ hg uncommit --no-keep |
|
348 $ hg log -G -T '{desc} FILES: {files}' |
|
349 x Q FILES: Q |
|
350 | |
|
351 @ P FILES: P |
|
352 |
|
353 $ hg status |
|
354 A Q |
333 $ cd .. |
355 $ cd .. |
334 $ rm -rf repo1 |
356 $ rm -rf repo1 |
335 |
357 |
336 Testing uncommit while merge |
358 Testing uncommit while merge |
337 |
359 |