This is an archive of the discontinued Mercurial Phabricator instance.

git: add test showing `hg commit -i` working on a git repo
ClosedPublic

Authored by sheehan on Sep 24 2020, 12:37 PM.

Details

Summary

Shows hg commit -i working on a git repo via the git
extension. Adds working directory changes to files alpha and
beta, then selects only alpha changes and commits them.

As of now this would fail for a filename that
includes uppercase characters due to the lack of case folding
support in the extension.

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

sheehan created this revision.Sep 24 2020, 12:37 PM
sheehan added inline comments.Sep 24 2020, 12:44 PM
tests/test-git-interop.t
305

Not sure about this line.

319

There's probably a better way than printing the full patch, if you have a preference.

pulkit accepted this revision.Sep 26 2020, 6:35 AM
This revision is now accepted and ready to land.Sep 26 2020, 6:35 AM