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 |
|
|
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( |
|
72 | if not opts.get('logfile'): | |
74 |
opts[ |
|
73 | opts['message'] = opts.get('message') or repo[b'.'].description() | |
75 |
opts[ |
|
74 | opts['amend'] = True | |
76 |
return commands._docommit(ui, repo, *pats, ** |
|
75 | return commands._docommit(ui, repo, *pats, **opts) |
General Comments 0
You need to be logged in to leave comments.
Login now