Mercurial > hg
comparison hgext/rebase.py @ 45229:0ea08126a2af stable
rebase: fix regression in file change detection introduced by 0ecb3b11fcad
Before 0ecb3b11fcad, `wctx._compact()`, was called by `wctx.nofilechanges()` as
a side effect. Later, it turned out that this side effect is needed to correctly
detect which files changed. See https://phab.mercurial-scm.org/D8733#131949 for
the history.
The problem could also be triggered by running `tests/test-rebase-parameters.t`
with `--extra-config-opt rebase.experimental.inmemory=1`.
Differential Revision: https://phab.mercurial-scm.org/D8843
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 28 Jul 2020 20:47:50 +0200 |
parents | e429e7c801b2 |
children | 1f5c548f15e5 |
comparison
equal
deleted
inserted
replaced
45228:1476ec96965f | 45229:0ea08126a2af |
---|---|
1440 # ``branch`` (used when passing ``--keepbranches``). | 1440 # ``branch`` (used when passing ``--keepbranches``). |
1441 branch = None | 1441 branch = None |
1442 if b'branch' in extra: | 1442 if b'branch' in extra: |
1443 branch = extra[b'branch'] | 1443 branch = extra[b'branch'] |
1444 | 1444 |
1445 # FIXME: We call _compact() because it's required to correctly detect | |
1446 # changed files. This was added to fix a regression shortly before the 5.5 | |
1447 # release. A proper fix will be done in the default branch. | |
1448 wctx._compact() | |
1445 memctx = wctx.tomemctx( | 1449 memctx = wctx.tomemctx( |
1446 commitmsg, | 1450 commitmsg, |
1447 date=date, | 1451 date=date, |
1448 extra=extra, | 1452 extra=extra, |
1449 user=user, | 1453 user=user, |