hgext/graphlog.py
changeset 43077 687b865b95ad
parent 43076 2372284d9457
child 43554 9f70512ae2cf
equal deleted inserted replaced
43076:2372284d9457 43077:687b865b95ad
    28 command = registrar.command(cmdtable)
    28 command = registrar.command(cmdtable)
    29 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
    29 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
    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 = b'ships-with-hg-core'
    34 
    34 
    35 
    35 
    36 @command(
    36 @command(
    37     'glog',
    37     b'glog',
    38     [
    38     [
    39         (
    39         (
    40             'f',
    40             b'f',
    41             'follow',
    41             b'follow',
    42             None,
    42             None,
    43             _(
    43             _(
    44                 'follow changeset history, or file history across copies and renames'
    44                 b'follow changeset history, or file history across copies and renames'
    45             ),
    45             ),
    46         ),
    46         ),
    47         (
    47         (
    48             '',
    48             b'',
    49             'follow-first',
    49             b'follow-first',
    50             None,
    50             None,
    51             _('only follow the first parent of merge changesets (DEPRECATED)'),
    51             _(b'only follow the first parent of merge changesets (DEPRECATED)'),
    52         ),
    52         ),
    53         ('d', 'date', '', _('show revisions matching date spec'), _('DATE')),
       
    54         ('C', 'copies', None, _('show copied files')),
       
    55         (
    53         (
    56             'k',
    54             b'd',
    57             'keyword',
    55             b'date',
       
    56             b'',
       
    57             _(b'show revisions matching date spec'),
       
    58             _(b'DATE'),
       
    59         ),
       
    60         (b'C', b'copies', None, _(b'show copied files')),
       
    61         (
       
    62             b'k',
       
    63             b'keyword',
    58             [],
    64             [],
    59             _('do case-insensitive search for a given text'),
    65             _(b'do case-insensitive search for a given text'),
    60             _('TEXT'),
    66             _(b'TEXT'),
    61         ),
    67         ),
    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         (
    68         (
    67             '',
    69             b'r',
    68             'only-branch',
    70             b'rev',
       
    71             [],
       
    72             _(b'show the specified revision or revset'),
       
    73             _(b'REV'),
       
    74         ),
       
    75         (
       
    76             b'',
       
    77             b'removed',
       
    78             None,
       
    79             _(b'include revisions where files were removed'),
       
    80         ),
       
    81         (b'm', b'only-merges', None, _(b'show only merges (DEPRECATED)')),
       
    82         (b'u', b'user', [], _(b'revisions committed by user'), _(b'USER')),
       
    83         (
       
    84             b'',
       
    85             b'only-branch',
    69             [],
    86             [],
    70             _(
    87             _(
    71                 'show only changesets within the given named branch (DEPRECATED)'
    88                 b'show only changesets within the given named branch (DEPRECATED)'
    72             ),
    89             ),
    73             _('BRANCH'),
    90             _(b'BRANCH'),
    74         ),
    91         ),
    75         (
    92         (
    76             'b',
    93             b'b',
    77             'branch',
    94             b'branch',
    78             [],
    95             [],
    79             _('show changesets within the given named branch'),
    96             _(b'show changesets within the given named branch'),
    80             _('BRANCH'),
    97             _(b'BRANCH'),
    81         ),
    98         ),
    82         (
    99         (
    83             'P',
   100             b'P',
    84             'prune',
   101             b'prune',
    85             [],
   102             [],
    86             _('do not display revision or any of its ancestors'),
   103             _(b'do not display revision or any of its ancestors'),
    87             _('REV'),
   104             _(b'REV'),
    88         ),
   105         ),
    89     ]
   106     ]
    90     + cmdutil.logopts
   107     + cmdutil.logopts
    91     + cmdutil.walkopts,
   108     + cmdutil.walkopts,
    92     _('[OPTION]... [FILE]'),
   109     _(b'[OPTION]... [FILE]'),
    93     helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
   110     helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
    94     inferrepo=True,
   111     inferrepo=True,
    95 )
   112 )
    96 def glog(ui, repo, *pats, **opts):
   113 def glog(ui, repo, *pats, **opts):
    97     """show revision history alongside an ASCII revision graph
   114     """show revision history alongside an ASCII revision graph