This is an archive of the discontinued Mercurial Phabricator instance.

convert: demonstrate broken {files} list in merge commits with file flags
ClosedPublic

Authored by martinvonz on May 17 2019, 2:49 PM.

Details

Summary

When there is a merge in which the flags for a file from p2 is
non-empty, hg convert will incorrectly include that in the
changeset's files list.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.May 17 2019, 2:49 PM
This revision was automatically updated to reflect the committed changes.
pulkit added a subscriber: pulkit.May 23 2019, 8:00 AM
pulkit added inline comments.
tests/test-convert-hg-sink.t
604

Shouldn't this show b?

pulkit added inline comments.May 23 2019, 8:01 AM
tests/test-convert-hg-sink.t
604

Oh, I understood the merge commit other way. So this should show a or not? I am not sure whether we consider mod change as file change or not.

martinvonz marked an inline comment as done.May 23 2019, 9:05 AM
martinvonz added inline comments.
tests/test-convert-hg-sink.t
604

A file gets included pretty if it's different from both parents, so a should not be included here.