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 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 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. aren't comfortable giving us your full name, pseudonames are acceptable.
(Relevant config option: ui.username)
'''.strip() '''.strip()
BAD_DIFF_SETTINGS = ''' BAD_DIFF_SETTINGS = '''
Mozilla developers produce patches in a standard format, but your Mercurial is Mozilla developers produce patches in a standard format, but your Mercurial is
not configured to produce patches in that format. not configured to produce patches in that format.
(Relevant config options: diff.git, diff.showfunc, diff.unified)
'''.strip() '''.strip()
MQ_INFO = ''' 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 If you are a newcomer to Mercurial or are coming from Git, it is
recommended to avoid mq. recommended to avoid mq.
(Relevant config option: extensions.mq)
Would you like to activate the mq extension Would you like to activate the mq extension
'''.strip() '''.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 |hg bzexport| command. More info is available at
https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hgext/bzexport/README https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hgext/bzexport/README
(Relevant config option: extensions.bzexport)
Would you like to activate bzexport Would you like to activate bzexport
'''.strip() '''.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 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 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 Would you like to activate mqext
'''.strip() '''.strip()
@ -94,6 +104,8 @@ The qimportbz extension
import patches from Bugzilla using a friendly bz:// URL handler. e.g. import patches from Bugzilla using a friendly bz:// URL handler. e.g.
|hg qimport bz://123456|. |hg qimport bz://123456|.
(Relevant config option: extensions.qimportbz)
Would you like to activate qimportbz Would you like to activate qimportbz
'''.strip() '''.strip()
@ -138,6 +150,8 @@ BZPOST_INFO = '''
The bzpost extension automatically records the URLs of pushed commits to The bzpost extension automatically records the URLs of pushed commits to
referenced Bugzilla bugs after push. referenced Bugzilla bugs after push.
(Relevant config option: extensions.bzpost)
Would you like to activate bzpost Would you like to activate bzpost
'''.strip() '''.strip()
@ -162,6 +176,8 @@ The firefoxtree extension is *strongly* recommended if you:
a) aggregate multiple Firefox repositories into a single local repo a) aggregate multiple Firefox repositories into a single local repo
b) perform head/bookmark-based development (as opposed to mq) b) perform head/bookmark-based development (as opposed to mq)
(Relevant config option: extensions.firefoxtree)
Would you like to activate firefoxtree Would you like to activate firefoxtree
'''.strip() '''.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 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. 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 Would you like to activate push-to-try
'''.strip() '''.strip()
@ -183,6 +201,8 @@ The bundleclone extension makes cloning faster and saves server resources.
We highly recommend you activate this extension. We highly recommend you activate this extension.
(Relevant config option: extensions.bundleclone)
Would you like to activate bundleclone Would you like to activate bundleclone
'''.strip() '''.strip()