diff hgext/amend.py @ 43076:2372284d9457

formatting: blacken the codebase This is using my patch to black (https://github.com/psf/black/pull/826) so we don't un-wrap collection literals. Done with: hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S # skip-blame mass-reformatting only # no-check-commit reformats foo_bar functions Differential Revision: https://phab.mercurial-scm.org/D6971
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:45:02 -0400
parents f10a0f5eedae
children 687b865b95ad
line wrap: on
line diff
--- a/hgext/amend.py	Sat Oct 05 10:29:34 2019 -0400
+++ b/hgext/amend.py	Sun Oct 06 09:45:02 2019 -0400
@@ -29,20 +29,35 @@
 cmdtable = {}
 command = registrar.command(cmdtable)
 
-@command('amend',
-    [('A', 'addremove', None,
-      _('mark new/missing files as added/removed before committing')),
-     ('e', 'edit', None, _('invoke editor on commit messages')),
-     ('i', 'interactive', None, _('use interactive mode')),
-     (b'', b'close-branch', None,
-      _(b'mark a branch as closed, hiding it from the branch list')),
-     (b's', b'secret', None, _(b'use the secret phase for committing')),
-     ('n', 'note', '', _('store a note on the amend')),
-    ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2
-      + cmdutil.commitopts3,
+
+@command(
+    'amend',
+    [
+        (
+            'A',
+            'addremove',
+            None,
+            _('mark new/missing files as added/removed before committing'),
+        ),
+        ('e', 'edit', None, _('invoke editor on commit messages')),
+        ('i', 'interactive', None, _('use interactive mode')),
+        (
+            b'',
+            b'close-branch',
+            None,
+            _(b'mark a branch as closed, hiding it from the branch list'),
+        ),
+        (b's', b'secret', None, _(b'use the secret phase for committing')),
+        ('n', 'note', '', _('store a note on the amend')),
+    ]
+    + cmdutil.walkopts
+    + cmdutil.commitopts
+    + cmdutil.commitopts2
+    + cmdutil.commitopts3,
     _('[OPTION]... [FILE]...'),
     helpcategory=command.CATEGORY_COMMITTING,
-    inferrepo=True)
+    inferrepo=True,
+)
 def amend(ui, repo, *pats, **opts):
     """amend the working copy parent with all or specified outstanding changes