Mercurial > public > mercurial-scm > hg-stable
diff hgext/record.py @ 41768:aaad36b88298
cleanup: use () to wrap long lines instead of \
This is a little less brittle, and often helps indentation. In a
surprising number of cases the entire cleanup was deleting the \, as
the expression was *already* parenthesized in a workable way.
Differential Revision: https://phab.mercurial-scm.org/D5993
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 20 Feb 2019 19:28:51 -0500 |
parents | fa88170c10bb |
children | 4d21ebc4cb47 |
line wrap: on
line diff
--- a/hgext/record.py Sun Jan 13 20:13:22 2019 -0500 +++ b/hgext/record.py Wed Feb 20 19:28:51 2019 -0500 @@ -134,12 +134,12 @@ except KeyError: return - cmdtable["qrecord"] = \ - (qrecord, - # same options as qnew, but copy them so we don't get - # -i/--interactive for qrecord and add white space diff options - mq.cmdtable['qnew'][1][:] + cmdutil.diffwsopts, - _('hg qrecord [OPTION]... PATCH [FILE]...')) + cmdtable["qrecord"] = ( + qrecord, + # same options as qnew, but copy them so we don't get + # -i/--interactive for qrecord and add white space diff options + mq.cmdtable['qnew'][1][:] + cmdutil.diffwsopts, + _('hg qrecord [OPTION]... PATCH [FILE]...')) _wrapcmd('qnew', mq.cmdtable, qnew, _("interactively record a new patch")) _wrapcmd('qrefresh', mq.cmdtable, qrefresh,