Mercurial > evolve
comparison tests/test-evolve-effectflags.t @ 4722:7839720c7c75
rewind: make sure merge commits include files from p1 and p2
Otherwise rewinding a merge commit makes it lose all changes.
This fix populates `updates` argument of rewriteutil.rewrite() with parent
changesets. That argument is normally used for folding multiple changesets, but
in this case it's simply used to include files from p1 and p2. Usually,
rewrite() works fine using ctx.files(), but that function can return an empty
list when ctx is a merge commit.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 11 Jul 2019 17:04:08 +0800 |
parents | d166b3dc5e8a |
children | 98941c28f3e2 900668a93629 |
comparison
equal
deleted
inserted
replaced
4721:b69497b23d31 | 4722:7839720c7c75 |
---|