##// END OF EJS Templates
amend: work mostly with str-type **opts for simplicity...
Martin von Zweigbergk -
r48220:6ce89165 default
parent child Browse files
Show More
@@ -66,11 +66,10 b' def amend(ui, repo, *pats, **opts):'
66
66
67 See :hg:`help commit` for more details.
67 See :hg:`help commit` for more details.
68 """
68 """
69 opts = pycompat.byteskwargs(opts)
69 cmdutil.checknotesize(ui, pycompat.byteskwargs(opts))
70 cmdutil.checknotesize(ui, opts)
71
70
72 with repo.wlock(), repo.lock():
71 with repo.wlock(), repo.lock():
73 if not opts.get(b'logfile'):
72 if not opts.get('logfile'):
74 opts[b'message'] = opts.get(b'message') or repo[b'.'].description()
73 opts['message'] = opts.get('message') or repo[b'.'].description()
75 opts[b'amend'] = True
74 opts['amend'] = True
76 return commands._docommit(ui, repo, *pats, **pycompat.strkwargs(opts))
75 return commands._docommit(ui, repo, *pats, **opts)
General Comments 0
You need to be logged in to leave comments. Login now