( )⚙ D6119 uncommit: move _movedirstate() to scmutil for reuse

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
Lint Skipped
Unit
Unit Tests Skipped

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.