This is an archive of the discontinued Mercurial Phabricator instance.

fancyopts: fix rendering of customopt defaults in help text
ClosedPublic

Authored by dploch on Mar 22 2018, 8:10 PM.

Details

Summary

Also make a getdefaultvalue() function to prevent unwanted mutation.

Diff Detail

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

Event Timeline

dploch created this revision.Mar 22 2018, 8:10 PM
dploch added a subscriber: yuja.Mar 22 2018, 8:16 PM
yuja requested changes to this revision.Mar 23 2018, 10:17 AM

Looks good, but can you split this to two patches?

https://www.mercurial-scm.org/wiki/ContributingChanges#Submission_checklist

This revision now requires changes to proceed.Mar 23 2018, 10:17 AM
In D2935#47329, @yuja wrote:

Looks good, but can you split this to two patches?
https://www.mercurial-scm.org/wiki/ContributingChanges#Submission_checklist

Done, sorry.

getdefaultvalue() change is now in D2937

yuja accepted this revision.Mar 23 2018, 10:54 PM
This revision is now accepted and ready to land.Mar 23 2018, 10:54 PM
yuja added a comment.Mar 23 2018, 10:55 PM

Moved test-help.t change back to this patch, and queued, thanks.

This revision was automatically updated to reflect the committed changes.