Page MenuHomePhabricator

tweakdefaults: provide advice about`hg uncommit`
ClosedPublic

Authored by sergeyn on Nov 8 2017, 3:54 AM.

Details

Reviewers
mitrandir
Group Reviewers
Restricted Project
Commits
rFBHGX9b5a2305541e: tweakdefaults: provide advice about`hg uncommit`
Summary

Advice using hg uncommit when a command to prune (like hg strip) but keeping the changes (with --keep option)

Test Plan

Run hg strip -k\--keep a "'hg uncommit' provides a better UI for undoing commits while keeping the changes" should show up.
Run hg strip w/o --keep option, "'hg hide' provides a better UI for hiding commits" should be shown

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

sergeyn created this revision.Nov 8 2017, 3:54 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 8 2017, 3:54 AM
mitrandir accepted this revision.Nov 8 2017, 10:28 AM
This revision is now accepted and ready to land.Nov 8 2017, 10:28 AM
This revision was automatically updated to reflect the committed changes.
quark added a subscriber: quark.EditedDec 5 2017, 2:56 PM

I think we should only show this message when stripping . but not other revisions.

Besides, this probably wants a real test.