comparison tests/test-mq-qrefresh.t @ 22519:c87f2a5a6e49

mq: correctly make an empty line after description in new patches There would in some cases be an empty line between headers and the description - that does not seem right. There should also be an empty line between description and diff - but that was missing. These two mistakes would sometimes make it up for each other so we fix both at once to just show the improvement. Instead of writing an extra newline when writing a header line, write an extra line when it not is written as a part of the description but is necessary anyway.
author Mads Kiilerich <madski@unity3d.com>
date Sat, 20 Sep 2014 17:06:56 +0200
parents 55b367bff8d2
children 3f948469bac0
comparison
equal deleted inserted replaced
22518:52dd6e25121f 22519:c87f2a5a6e49
506 [255] 506 [255]
507 $ rm a 507 $ rm a
508 $ cat .hg/patches/a 508 $ cat .hg/patches/a
509 # HG changeset patch 509 # HG changeset patch
510 # Parent 0000000000000000000000000000000000000000 510 # Parent 0000000000000000000000000000000000000000
511
511 diff --git a/a b/a 512 diff --git a/a b/a
512 new file mode 100644 513 new file mode 100644
513 $ hg qpush 514 $ hg qpush
514 applying a 515 applying a
515 now at: a 516 now at: a
520 abort: empty username! 521 abort: empty username!
521 [255] 522 [255]
522 $ cat .hg/patches/a 523 $ cat .hg/patches/a
523 # HG changeset patch 524 # HG changeset patch
524 # Parent 0000000000000000000000000000000000000000 525 # Parent 0000000000000000000000000000000000000000
526
525 diff --git a/a b/a 527 diff --git a/a b/a
526 new file mode 100644 528 new file mode 100644
527 $ cd .. 529 $ cd ..
528 530
529 Refresh with phase data: 531 Refresh with phase data: