##// END OF EJS Templates
import: add --edit switch
Matt Mackall -
r15221:269374b8 default
parent child Browse files
Show More
@@ -3185,6 +3185,7 b' def identify(ui, repo, source=None, rev='
3185 _('directory strip option for patch. This has the same '
3185 _('directory strip option for patch. This has the same '
3186 'meaning as the corresponding patch option'), _('NUM')),
3186 'meaning as the corresponding patch option'), _('NUM')),
3187 ('b', 'base', '', _('base path (DEPRECATED)'), _('PATH')),
3187 ('b', 'base', '', _('base path (DEPRECATED)'), _('PATH')),
3188 ('e', 'edit', False, _('invoke editor on commit messages')),
3188 ('f', 'force', None, _('skip check for outstanding uncommitted changes')),
3189 ('f', 'force', None, _('skip check for outstanding uncommitted changes')),
3189 ('', 'no-commit', None,
3190 ('', 'no-commit', None,
3190 _("don't commit, just update the working directory")),
3191 _("don't commit, just update the working directory")),
@@ -3264,6 +3265,10 b' def import_(ui, repo, patch1, *patches, '
3264 if date:
3265 if date:
3265 opts['date'] = util.parsedate(date)
3266 opts['date'] = util.parsedate(date)
3266
3267
3268 editor = cmdutil.commiteditor
3269 if opts.get('edit'):
3270 editor = cmdutil.commitforceeditor
3271
3267 update = not opts.get('bypass')
3272 update = not opts.get('bypass')
3268 if not update and opts.get('no_commit'):
3273 if not update and opts.get('no_commit'):
3269 raise util.Abort(_('cannot use --no-commit with --bypass'))
3274 raise util.Abort(_('cannot use --no-commit with --bypass'))
@@ -3350,7 +3355,7 b' def import_(ui, repo, patch1, *patches, '
3350 m = scmutil.matchfiles(repo, files or [])
3355 m = scmutil.matchfiles(repo, files or [])
3351 n = repo.commit(message, opts.get('user') or user,
3356 n = repo.commit(message, opts.get('user') or user,
3352 opts.get('date') or date, match=m,
3357 opts.get('date') or date, match=m,
3353 editor=cmdutil.commiteditor)
3358 editor=editor)
3354 checkexact(repo, n, nodeid)
3359 checkexact(repo, n, nodeid)
3355 else:
3360 else:
3356 if opts.get('exact') or opts.get('import_branch'):
3361 if opts.get('exact') or opts.get('import_branch'):
@@ -246,7 +246,7 b' Show all commands + options'
246 heads: rev, topo, active, closed, style, template
246 heads: rev, topo, active, closed, style, template
247 help: extension, command
247 help: extension, command
248 identify: rev, num, id, branch, tags, bookmarks
248 identify: rev, num, id, branch, tags, bookmarks
249 import: strip, base, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity
249 import: strip, base, edit, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity
250 incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, style, template, ssh, remotecmd, insecure, subrepos
250 incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, style, template, ssh, remotecmd, insecure, subrepos
251 locate: rev, print0, fullpath, include, exclude
251 locate: rev, print0, fullpath, include, exclude
252 manifest: rev, all
252 manifest: rev, all
General Comments 0
You need to be logged in to leave comments. Login now