Mercurial > hg
comparison hgext/hgk.py @ 9063:0772889d8a65
hgk: wrapped docstrings at 78 characters
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 07 Jul 2009 23:54:42 +0200 |
parents | 576623f95972 |
children | 62114b1cea85 |
comparison
equal
deleted
inserted
replaced
9062:6921a7140ab3 | 9063:0772889d8a65 |
---|---|
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2, incorporated herein by reference. | 6 # GNU General Public License version 2, incorporated herein by reference. |
7 | 7 |
8 '''browse the repository in a graphical way | 8 '''browse the repository in a graphical way |
9 | 9 |
10 The hgk extension allows browsing the history of a repository in a | 10 The hgk extension allows browsing the history of a repository in a graphical |
11 graphical way. It requires Tcl/Tk version 8.4 or later. (Tcl/Tk is not | 11 way. It requires Tcl/Tk version 8.4 or later. (Tcl/Tk is not distributed with |
12 distributed with Mercurial.) | 12 Mercurial.) |
13 | 13 |
14 hgk consists of two parts: a Tcl script that does the displaying and | 14 hgk consists of two parts: a Tcl script that does the displaying and querying |
15 querying of information, and an extension to Mercurial named hgk.py, | 15 of information, and an extension to Mercurial named hgk.py, which provides |
16 which provides hooks for hgk to get information. hgk can be found in | 16 hooks for hgk to get information. hgk can be found in the contrib directory, |
17 the contrib directory, and the extension is shipped in the hgext | 17 and the extension is shipped in the hgext repository, and needs to be enabled. |
18 repository, and needs to be enabled. | 18 |
19 | 19 The hg view command will launch the hgk Tcl script. For this command to work, |
20 The hg view command will launch the hgk Tcl script. For this command | 20 hgk must be in your search path. Alternately, you can specify the path to hgk |
21 to work, hgk must be in your search path. Alternately, you can specify | 21 in your .hgrc file: |
22 the path to hgk in your .hgrc file: | |
23 | 22 |
24 [hgk] | 23 [hgk] |
25 path=/location/of/hgk | 24 path=/location/of/hgk |
26 | 25 |
27 hgk can make use of the extdiff extension to visualize revisions. | 26 hgk can make use of the extdiff extension to visualize revisions. Assuming you |
28 Assuming you had already configured extdiff vdiff command, just add: | 27 had already configured extdiff vdiff command, just add: |
29 | 28 |
30 [hgk] | 29 [hgk] |
31 vdiff=vdiff | 30 vdiff=vdiff |
32 | 31 |
33 Revisions context menu will now display additional entries to fire | 32 Revisions context menu will now display additional entries to fire vdiff on |
34 vdiff on hovered and selected revisions.''' | 33 hovered and selected revisions. |
34 ''' | |
35 | 35 |
36 import os | 36 import os |
37 from mercurial import commands, util, patch, revlog, cmdutil | 37 from mercurial import commands, util, patch, revlog, cmdutil |
38 from mercurial.node import nullid, nullrev, short | 38 from mercurial.node import nullid, nullrev, short |
39 from mercurial.i18n import _ | 39 from mercurial.i18n import _ |