This is an archive of the discontinued Mercurial Phabricator instance.

undo: implements relative undo, hg redo and tests
ClosedPublic

Authored by felixmerk on Jul 11 2017, 5:56 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGX46c7e52c1deb: undo: implements relative undo, hg redo and tests
Summary

Implements, and makes default relative undos and adds redos. A relative undo
behaves differently only if you haven't performend any repo changing operations
since your previous undo or redo, in which case you operate relative to that
undo/redo. This means that a second undo will not undo the previous undo but
instead bring you furter back.

Diff Detail

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

Event Timeline

stash added a subscriber: stash.Jul 12 2017, 9:31 AM

This revision has no reviewers. Is it expected?

felixmerk updated this revision to Diff 106.Jul 13 2017, 12:41 AM
felixmerk added a reviewer: Restricted Project.Jul 13 2017, 12:42 AM
felixmerk updated this revision to Diff 211.Jul 17 2017, 3:09 PM
felixmerk updated this revision to Diff 315.Jul 19 2017, 5:31 PM
quark accepted this revision.Jul 19 2017, 5:37 PM
quark added a subscriber: quark.

Looks good to me except for some minor issues that need fix before push.

hgext3rd/undo.py
183

nit: remove this line.

184

I think we want to use a different file name, like redonode. .i is usually considered as the index of revlog.

400–401

_like_

This revision is now accepted and ready to land.Jul 19 2017, 5:37 PM
felixmerk updated this revision to Diff 323.Jul 19 2017, 8:45 PM
This revision was automatically updated to reflect the committed changes.