# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1527013317 -19800 # Node ID 13175826515080598a8f4233875581937441a813 # Parent 2bc60fcac3548f80fb7350cbbc91c01de2c496d7 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. diff -r 2bc60fcac354 -r 131758265150 hgext3rd/evolve/utility.py --- a/hgext3rd/evolve/utility.py Wed May 23 02:46:20 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"