--- a/mercurial/cmdutil.py Fri May 07 08:38:17 2021 -0700
+++ b/mercurial/cmdutil.py Fri May 07 22:06:25 2021 -0400
@@ -329,7 +329,7 @@
def checknotesize(ui, opts):
- """ make sure note is of valid format """
+ """make sure note is of valid format"""
note = opts.get(b'note')
if not note:
@@ -975,7 +975,7 @@
def changebranch(ui, repo, revs, label, opts):
- """ Change the branch name of given revs to label """
+ """Change the branch name of given revs to label"""
with repo.wlock(), repo.lock(), repo.transaction(b'branches'):
# abort in case of uncommitted merge or dirty wdir
@@ -1106,7 +1106,7 @@
def logmessage(ui, opts):
- """ get the log message according to -m and -l option """
+ """get the log message according to -m and -l option"""
check_at_most_one_arg(opts, b'message', b'logfile')
@@ -3925,7 +3925,7 @@
def hgabortgraft(ui, repo):
- """ abort logic for aborting graft using 'hg abort'"""
+ """abort logic for aborting graft using 'hg abort'"""
with repo.wlock():
graftstate = statemod.cmdstate(repo, b'graftstate')
return abortgraft(ui, repo, graftstate)