comparison tests/test-convert-filemap.t @ 39111:46da52f4b820

commit: try hard to reuse p1 manifest if nothing changed This is all for commit reproducibility on "hg convert". With this change, p1 manifest is reused if ctx.files() *to be committed* is empty, and if new manifest entry is identical to p1. This is important property for "hg convert" since memctx.files() built from a convert source may be either a) more narrowed thanks to a committed ctx.files() which provides more accurate status, or b) containing redundant files because of sloppy filtering on e.g. octopus merge.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 07 Jul 2018 22:40:39 +0900
parents 84e7d2d8c098
children f1186c292d03
comparison
equal deleted inserted replaced
39110:f0c2653ca706 39111:46da52f4b820
778 scanning source... 778 scanning source...
779 sorting... 779 sorting...
780 converting... 780 converting...
781 0 3 781 0 3
782 $ hg -R .-hg log -G -T '{shortest(node)} {desc}\n{files % "- {file}\n"}\n' 782 $ hg -R .-hg log -G -T '{shortest(node)} {desc}\n{files % "- {file}\n"}\n'
783 o e9ed 3 783 o bbfe 3
784 |\ 784 |\
785 | o 33a0 2 785 | o 33a0 2
786 | | - f 786 | | - f
787 | | 787 | |
788 o | f73e 1 788 o | f73e 1