Mercurial > hg-stable
comparison mercurial/commands.py @ 21416:3e717c9376fc
graft: use "getcommiteditor()" instead of explicit editor choice
This patch also enhances "test-graft.t", because "hg graft" hasn't
been explicitly tested around editor invocation and "--edit" option.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sun, 11 May 2014 00:49:36 +0900 |
parents | 37a302f0e297 |
children | d4b8fc753455 |
comparison
equal
deleted
inserted
replaced
21415:0b5d6c062774 | 21416:3e717c9376fc |
---|---|
3069 if not opts.get('user') and opts.get('currentuser'): | 3069 if not opts.get('user') and opts.get('currentuser'): |
3070 opts['user'] = ui.username() | 3070 opts['user'] = ui.username() |
3071 if not opts.get('date') and opts.get('currentdate'): | 3071 if not opts.get('date') and opts.get('currentdate'): |
3072 opts['date'] = "%d %d" % util.makedate() | 3072 opts['date'] = "%d %d" % util.makedate() |
3073 | 3073 |
3074 editor = None | 3074 editor = cmdutil.getcommiteditor(**opts) |
3075 if opts.get('edit'): | |
3076 editor = cmdutil.commitforceeditor | |
3077 | 3075 |
3078 cont = False | 3076 cont = False |
3079 if opts['continue']: | 3077 if opts['continue']: |
3080 cont = True | 3078 cont = True |
3081 if revs: | 3079 if revs: |