Bug 1185557 - Print relevant config options; r=smacleod

Users may want to know what the wizard is changing before they answer
prompts. Add the names of impacted config options to messages so people
can make more informed decisions.
This commit is contained in:
Gregory Szorc 2015-07-21 10:11:09 -07:00
parent 35dc273150
commit a09073acc8

View File

@ -54,11 +54,15 @@ MISSING_USERNAME = '''
You don't have a username defined in your Mercurial config file. In order to
send patches to Mozilla, you'll need to attach a name and email address. If you
aren't comfortable giving us your full name, pseudonames are acceptable.
(Relevant config option: ui.username)
'''.strip()
BAD_DIFF_SETTINGS = '''
Mozilla developers produce patches in a standard format, but your Mercurial is
not configured to produce patches in that format.
(Relevant config options: diff.git, diff.showfunc, diff.unified)
'''.strip()
MQ_INFO = '''
@ -68,6 +72,8 @@ alternative to the recommended bookmark-based development workflow.
If you are a newcomer to Mercurial or are coming from Git, it is
recommended to avoid mq.
(Relevant config option: extensions.mq)
Would you like to activate the mq extension
'''.strip()
@ -77,6 +83,8 @@ bzexport that makes it easy to upload patches from the command line via the
|hg bzexport| command. More info is available at
https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hgext/bzexport/README
(Relevant config option: extensions.bzexport)
Would you like to activate bzexport
'''.strip()
@ -85,6 +93,8 @@ The mqext extension adds a number of features, including automatically committin
changes to your mq patch queue. More info is available at
https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hgext/mqext/README.txt
(Relevant config option: extensions.mqext)
Would you like to activate mqext
'''.strip()
@ -94,6 +104,8 @@ The qimportbz extension
import patches from Bugzilla using a friendly bz:// URL handler. e.g.
|hg qimport bz://123456|.
(Relevant config option: extensions.qimportbz)
Would you like to activate qimportbz
'''.strip()
@ -138,6 +150,8 @@ BZPOST_INFO = '''
The bzpost extension automatically records the URLs of pushed commits to
referenced Bugzilla bugs after push.
(Relevant config option: extensions.bzpost)
Would you like to activate bzpost
'''.strip()
@ -162,6 +176,8 @@ The firefoxtree extension is *strongly* recommended if you:
a) aggregate multiple Firefox repositories into a single local repo
b) perform head/bookmark-based development (as opposed to mq)
(Relevant config option: extensions.firefoxtree)
Would you like to activate firefoxtree
'''.strip()
@ -173,6 +189,8 @@ try syntax and pushes it to the try server. The extension is intended
to be used in concert with other tools generating try syntax so that
they can push to try without depending on mq or other workarounds.
(Relevant config option: extensions.push-to-try)
Would you like to activate push-to-try
'''.strip()
@ -183,6 +201,8 @@ The bundleclone extension makes cloning faster and saves server resources.
We highly recommend you activate this extension.
(Relevant config option: extensions.bundleclone)
Would you like to activate bundleclone
'''.strip()