diff -r 41b32cbc53f8 -r b8f4ead9fa49 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Jul 06 18:52:19 2020 +0200 +++ b/mercurial/localrepo.py Mon Jul 06 19:16:04 2020 +0200 @@ -2899,7 +2899,7 @@ # is the file changed? text = fctx.data() - if fparent2 != nullid or flog.cmp(fparent1, text) or meta: + if fparent2 != nullid or meta or flog.cmp(fparent1, text): changelist.append(fname) return flog.add(text, meta, tr, linkrev, fparent1, fparent2) # are just the flags changed during merge?