( )⚙ D502 undo: better error messaging and hiding hg serve commands

This is an archive of the discontinued Mercurial Phabricator instance.

undo: better error messaging and hiding hg serve commands
ClosedPublic

Authored by felixmerk on Aug 24 2017, 2:34 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGXf332427aef2b: undo: better error messaging and hiding hg serve commands
Summary

In interactive mode, disables out of bounds <-,-> notifying the user with text
and a '\a' sound. Friendlier ui messages for when the user selects the current
state with the arrow keys or when trying to undo to a state before we recorded
anything. Hg serve commands generally aren't user executed and simply should be
skipped across when undoing (like unfinished states). The user can always use
--absolute to see them in preview and to undo to them.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

felixmerk created this revision.Aug 24 2017, 2:34 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 24 2017, 2:34 PM
quark accepted this revision.Aug 24 2017, 3:19 PM
quark added a subscriber: quark.
quark added inline comments.
hgext3rd/undo.py
692–693

Maybe explain why "cannot":

cannot undo that far - undo extension was not enabled
This revision is now accepted and ready to land.Aug 24 2017, 3:19 PM
quark added inline comments.Aug 24 2017, 3:22 PM
hgext3rd/undo.py
718

nit: Already

s/newest repo state/the newest state/?

felixmerk updated this revision to Diff 1252.Aug 24 2017, 3:25 PM
This revision was automatically updated to reflect the committed changes.