comparison hgext/graphlog.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 c303d65d2e34
children 687b865b95ad
comparison
equal deleted inserted replaced
43075:57875cf423c9 43076:2372284d9457
30 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 30 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
31 # be specifying the version(s) of Mercurial they are tested with, or 31 # be specifying the version(s) of Mercurial they are tested with, or
32 # leave the attribute unspecified. 32 # leave the attribute unspecified.
33 testedwith = 'ships-with-hg-core' 33 testedwith = 'ships-with-hg-core'
34 34
35 @command('glog', 35
36 [('f', 'follow', None, 36 @command(
37 _('follow changeset history, or file history across copies and renames')), 37 'glog',
38 ('', 'follow-first', None, 38 [
39 _('only follow the first parent of merge changesets (DEPRECATED)')), 39 (
40 ('d', 'date', '', _('show revisions matching date spec'), _('DATE')), 40 'f',
41 ('C', 'copies', None, _('show copied files')), 41 'follow',
42 ('k', 'keyword', [], 42 None,
43 _('do case-insensitive search for a given text'), _('TEXT')), 43 _(
44 ('r', 'rev', [], _('show the specified revision or revset'), _('REV')), 44 'follow changeset history, or file history across copies and renames'
45 ('', 'removed', None, _('include revisions where files were removed')), 45 ),
46 ('m', 'only-merges', None, _('show only merges (DEPRECATED)')), 46 ),
47 ('u', 'user', [], _('revisions committed by user'), _('USER')), 47 (
48 ('', 'only-branch', [], 48 '',
49 _('show only changesets within the given named branch (DEPRECATED)'), 49 'follow-first',
50 _('BRANCH')), 50 None,
51 ('b', 'branch', [], 51 _('only follow the first parent of merge changesets (DEPRECATED)'),
52 _('show changesets within the given named branch'), _('BRANCH')), 52 ),
53 ('P', 'prune', [], 53 ('d', 'date', '', _('show revisions matching date spec'), _('DATE')),
54 _('do not display revision or any of its ancestors'), _('REV')), 54 ('C', 'copies', None, _('show copied files')),
55 ] + cmdutil.logopts + cmdutil.walkopts, 55 (
56 'k',
57 'keyword',
58 [],
59 _('do case-insensitive search for a given text'),
60 _('TEXT'),
61 ),
62 ('r', 'rev', [], _('show the specified revision or revset'), _('REV')),
63 ('', 'removed', None, _('include revisions where files were removed')),
64 ('m', 'only-merges', None, _('show only merges (DEPRECATED)')),
65 ('u', 'user', [], _('revisions committed by user'), _('USER')),
66 (
67 '',
68 'only-branch',
69 [],
70 _(
71 'show only changesets within the given named branch (DEPRECATED)'
72 ),
73 _('BRANCH'),
74 ),
75 (
76 'b',
77 'branch',
78 [],
79 _('show changesets within the given named branch'),
80 _('BRANCH'),
81 ),
82 (
83 'P',
84 'prune',
85 [],
86 _('do not display revision or any of its ancestors'),
87 _('REV'),
88 ),
89 ]
90 + cmdutil.logopts
91 + cmdutil.walkopts,
56 _('[OPTION]... [FILE]'), 92 _('[OPTION]... [FILE]'),
57 helpcategory=command.CATEGORY_CHANGE_NAVIGATION, 93 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
58 inferrepo=True) 94 inferrepo=True,
95 )
59 def glog(ui, repo, *pats, **opts): 96 def glog(ui, repo, *pats, **opts):
60 """show revision history alongside an ASCII revision graph 97 """show revision history alongside an ASCII revision graph
61 98
62 Print a revision history alongside a revision graph drawn with 99 Print a revision history alongside a revision graph drawn with
63 ASCII characters. 100 ASCII characters.