This is an archive of the discontinued Mercurial Phabricator instance.

uncommit: move _movedirstate() to scmutil for reuse
ClosedPublic

Authored by martinvonz on Mar 11 2019, 2:19 PM.

Details

Summary

The function should be applicable generically when moving from one
commit to another. I'll try to add more callers when I find time.

I'm not convinced it's handling all the cases correctly, but we should
have a generic function for this kind of operation, so I think it
belongs somewhere in core (not in the uncommit 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

martinvonz created this revision.Mar 11 2019, 2:19 PM
pulkit accepted this revision.Mar 11 2019, 6:42 PM
This revision was automatically updated to reflect the committed changes.