##// END OF EJS Templates
cmdutil: introduce "getcommiteditor()" to simplify code paths to choose editor...
FUJIWARA Katsunori -
r21405:dcf20f24 default
parent child Browse files
Show More
@@ -109,6 +109,13 b' def logmessage(ui, opts):'
109 (logfile, inst.strerror))
109 (logfile, inst.strerror))
110 return message
110 return message
111
111
112 def getcommiteditor(edit=False, **opts):
113 """get appropriate commit message editor according to '--edit' option"""
114 if edit:
115 return commitforceeditor
116 else:
117 return commiteditor
118
112 def loglimit(opts):
119 def loglimit(opts):
113 """get the log limit according to option -l/--limit"""
120 """get the log limit according to option -l/--limit"""
114 limit = opts.get('limit')
121 limit = opts.get('limit')
General Comments 0
You need to be logged in to leave comments. Login now