Mercurial > evolve
changeset 3815:9f2fb14929a0 stable
utility: use ui.interactive() instead of checking config value
Before this patch, the rev selection prompt which pops up in case of ambiguity
to ask user to select a rev used to check the config value of ui.interactive
which can is by default set to None.
We should use ui.interactive() instead which is more smart in such cases.
Thanks to martinvonz for suggesting this.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 22 May 2018 23:51:57 +0530 |
parents | add545ac044d |
children | 4c68dd62943c 8142e47811dd |
files | hgext3rd/evolve/utility.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/utility.py Fri Jun 08 19:48:53 2018 +0530 +++ b/hgext3rd/evolve/utility.py Tue May 22 23:51:57 2018 +0530 @@ -152,7 +152,7 @@ # ui.interactive is not set, fallback to default behavior and avoid showing # the prompt - if not ui.configbool('ui', 'interactive'): + if not ui.interactive(): return None promptmsg = customheader + "\n"