HomePhabricator

gendoc: support defaults on customopts a bit better

Authored by spectral.

Description

gendoc: support defaults on customopts a bit better

Without this, a customopt will very likely render like this:

-foo   does foo (default: <hgext.myextension.MyOpt object at 0x7f31...>)

I copied this logic from how this is handled in mercurial/help.py.

Differential Revision: https://phab.mercurial-scm.org/D9988

Details

Committed
spectralFeb 12 2021, 2:04 PM
Differential Revision
D9988: gendoc: support defaults on customopts a bit better
Parents
rHGcd9154343160: softstrip: fix a reference to an undefined variable
Branches
Unknown
Tags
Unknown