##// END OF EJS Templates
cmdutil: introduce "getcommiteditor()" to simplify code paths to choose editor...
cmdutil: introduce "getcommiteditor()" to simplify code paths to choose editor "getcommiteditor()" can simplify code paths to choose commit editor according to '--edit' option as below: before: editor = cmdutil.commiteditor # or editor = None/False if opts.get('edit'): editor = cmdutil.commitforceeditor after: editor = cmdutil.getcommiteditor(**opts) "getcommiteditor()" accepts option arguments not in "opts" style but in "**opts" style, because some code paths want to invoke it with just explicit "edit=True" argument (building dictionary is redundant).

File last commit:

r0:9117c656 default
r21405:dcf20f24 default
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer