Show More
@@ -1,62 +1,62 | |||
|
1 | 1 | # ASCII graph log extension for Mercurial |
|
2 | 2 | # |
|
3 | 3 | # Copyright 2007 Joel Rosdahl <joel@rosdahl.net> |
|
4 | 4 | # |
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | '''command to view revision graphs from a shell (DEPRECATED) |
|
9 | 9 | |
|
10 | 10 | The functionality of this extension has been include in core Mercurial |
|
11 | 11 | since version 2.3. |
|
12 | 12 | |
|
13 | 13 | This extension adds a --graph option to the incoming, outgoing and log |
|
14 | 14 | commands. When this options is given, an ASCII representation of the |
|
15 | 15 | revision graph is also shown. |
|
16 | 16 | ''' |
|
17 | 17 | |
|
18 | 18 | from mercurial.i18n import _ |
|
19 | 19 | from mercurial import cmdutil, commands |
|
20 | 20 | |
|
21 | 21 | cmdtable = {} |
|
22 | 22 | command = cmdutil.command(cmdtable) |
|
23 | 23 | # Note for extension authors: ONLY specify testedwith = 'internal' for |
|
24 | 24 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
25 | 25 | # be specifying the version(s) of Mercurial they are tested with, or |
|
26 | 26 | # leave the attribute unspecified. |
|
27 | 27 | testedwith = 'internal' |
|
28 | 28 | |
|
29 | 29 | @command('glog', |
|
30 | 30 | [('f', 'follow', None, |
|
31 | 31 | _('follow changeset history, or file history across copies and renames')), |
|
32 | 32 | ('', 'follow-first', None, |
|
33 | 33 | _('only follow the first parent of merge changesets (DEPRECATED)')), |
|
34 | 34 | ('d', 'date', '', _('show revisions matching date spec'), _('DATE')), |
|
35 | 35 | ('C', 'copies', None, _('show copied files')), |
|
36 | 36 | ('k', 'keyword', [], |
|
37 | 37 | _('do case-insensitive search for a given text'), _('TEXT')), |
|
38 | 38 | ('r', 'rev', [], _('show the specified revision or revset'), _('REV')), |
|
39 | 39 | ('', 'removed', None, _('include revisions where files were removed')), |
|
40 | 40 | ('m', 'only-merges', None, _('show only merges (DEPRECATED)')), |
|
41 | 41 | ('u', 'user', [], _('revisions committed by user'), _('USER')), |
|
42 | 42 | ('', 'only-branch', [], |
|
43 | 43 | _('show only changesets within the given named branch (DEPRECATED)'), |
|
44 | 44 | _('BRANCH')), |
|
45 | 45 | ('b', 'branch', [], |
|
46 | 46 | _('show changesets within the given named branch'), _('BRANCH')), |
|
47 | 47 | ('P', 'prune', [], |
|
48 | 48 | _('do not display revision or any of its ancestors'), _('REV')), |
|
49 | 49 | ] + commands.logopts + commands.walkopts, |
|
50 | 50 | _('[OPTION]... [FILE]'), |
|
51 | 51 | inferrepo=True) |
|
52 |
def g |
|
|
52 | def glog(ui, repo, *pats, **opts): | |
|
53 | 53 | """show revision history alongside an ASCII revision graph |
|
54 | 54 | |
|
55 | 55 | Print a revision history alongside a revision graph drawn with |
|
56 | 56 | ASCII characters. |
|
57 | 57 | |
|
58 | 58 | Nodes printed as an @ character are parents of the working |
|
59 | 59 | directory. |
|
60 | 60 | """ |
|
61 | 61 | opts['graph'] = True |
|
62 | 62 | return commands.log(ui, repo, *pats, **opts) |
General Comments 0
You need to be logged in to leave comments.
Login now