Details
- Reviewers
quark - Group Reviewers
Restricted Project - Commits
- rFBHGX6d8c66ee1cf5: hg update hint
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
hgext3rd/tweakdefaults.py | ||
---|---|---|
440 | Actually, ui.write() seems the best choice here. |
Personally I think I'd prefer ui.status since that doesn't print out in quiet mode. I'm not familiar with how ui.write interacts with quiet mode.
I wonder if we should hide the hint if the user runs prev at least one time. But that is probably another diff. I think this kind of UX improvement probably needs a general purposed "framework". We might even need to sync "whether a hint should be hidden" information with the cloud for a given unixname.
hgext3rd/tweakdefaults.py | ||
---|---|---|
439 | @ryanmce is right. Let's change it to: ui.status(_("(hint: use 'hg prev' to move to the parent changeset)\n")) before landing. |
Since we don't have that generalized framework yet, probably we should have this config gated for now?
Thanks for the comments, I will change it to ui.status(_("(hint: use 'hg prev' to move to the parent changeset)\n")) and land it
ui.note is better. ui.warn may use a different color (ex. red) if the user has configured it.