diff hgext/graphlog.py @ 43077:687b865b95ad

formatting: byteify all mercurial/ and hgext/ string literals Done with python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py') black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**') # skip-blame mass-reformatting only Differential Revision: https://phab.mercurial-scm.org/D6972
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:48:39 -0400
parents 2372284d9457
children 9f70512ae2cf
line wrap: on
line diff
--- a/hgext/graphlog.py	Sun Oct 06 09:45:02 2019 -0400
+++ b/hgext/graphlog.py	Sun Oct 06 09:48:39 2019 -0400
@@ -30,66 +30,83 @@
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
 # be specifying the version(s) of Mercurial they are tested with, or
 # leave the attribute unspecified.
-testedwith = 'ships-with-hg-core'
+testedwith = b'ships-with-hg-core'
 
 
 @command(
-    'glog',
+    b'glog',
     [
         (
-            'f',
-            'follow',
+            b'f',
+            b'follow',
             None,
             _(
-                'follow changeset history, or file history across copies and renames'
+                b'follow changeset history, or file history across copies and renames'
             ),
         ),
         (
-            '',
-            'follow-first',
+            b'',
+            b'follow-first',
             None,
-            _('only follow the first parent of merge changesets (DEPRECATED)'),
+            _(b'only follow the first parent of merge changesets (DEPRECATED)'),
         ),
-        ('d', 'date', '', _('show revisions matching date spec'), _('DATE')),
-        ('C', 'copies', None, _('show copied files')),
         (
-            'k',
-            'keyword',
+            b'd',
+            b'date',
+            b'',
+            _(b'show revisions matching date spec'),
+            _(b'DATE'),
+        ),
+        (b'C', b'copies', None, _(b'show copied files')),
+        (
+            b'k',
+            b'keyword',
             [],
-            _('do case-insensitive search for a given text'),
-            _('TEXT'),
+            _(b'do case-insensitive search for a given text'),
+            _(b'TEXT'),
+        ),
+        (
+            b'r',
+            b'rev',
+            [],
+            _(b'show the specified revision or revset'),
+            _(b'REV'),
         ),
-        ('r', 'rev', [], _('show the specified revision or revset'), _('REV')),
-        ('', 'removed', None, _('include revisions where files were removed')),
-        ('m', 'only-merges', None, _('show only merges (DEPRECATED)')),
-        ('u', 'user', [], _('revisions committed by user'), _('USER')),
         (
-            '',
-            'only-branch',
+            b'',
+            b'removed',
+            None,
+            _(b'include revisions where files were removed'),
+        ),
+        (b'm', b'only-merges', None, _(b'show only merges (DEPRECATED)')),
+        (b'u', b'user', [], _(b'revisions committed by user'), _(b'USER')),
+        (
+            b'',
+            b'only-branch',
             [],
             _(
-                'show only changesets within the given named branch (DEPRECATED)'
+                b'show only changesets within the given named branch (DEPRECATED)'
             ),
-            _('BRANCH'),
+            _(b'BRANCH'),
         ),
         (
-            'b',
-            'branch',
+            b'b',
+            b'branch',
             [],
-            _('show changesets within the given named branch'),
-            _('BRANCH'),
+            _(b'show changesets within the given named branch'),
+            _(b'BRANCH'),
         ),
         (
-            'P',
-            'prune',
+            b'P',
+            b'prune',
             [],
-            _('do not display revision or any of its ancestors'),
-            _('REV'),
+            _(b'do not display revision or any of its ancestors'),
+            _(b'REV'),
         ),
     ]
     + cmdutil.logopts
     + cmdutil.walkopts,
-    _('[OPTION]... [FILE]'),
+    _(b'[OPTION]... [FILE]'),
     helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
     inferrepo=True,
 )