Differences between revisions 2 and 3
Revision 2 as of 2005-09-29 04:12:47
Size: 1425
Editor: TKSoh
Comment:
Revision 3 as of 2005-09-29 06:03:07
Size: 1596
Editor: TKSoh
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
Mercurial can also scan the default python library path for a file named 'hgk.py': Mercurial can also scan the default python library path for a file named 'hgk.py' if you set {{{hgk}}} empty:
Line 20: Line 20:
}}}

You would also need to add hgk to your search path, or specify the path to hgk in your .hgrc file:

{{{
[hgk]
path=/location/of/hgk

Mercurial includes a tool called hgk that allows browsing the history of a repository in a GUI. It's a direct port of the gitk tool used with git. Hgk requires Tcl/Tk version 8.4 or later.

To use hgk, you'll want to install the hgk.py extension which adds a view command as well as other interfaces that hgk uses to communicate with Mercurial in a git-like manner.

Both hgk and hgk.py are found in the contrib directory.

To load an extension, you add it to your .hgrc file. You can specify an absolute path:

[extensions]
hgk=/usr/local/lib/hgk.py

Mercurial can also scan the default python library path for a file named 'hgk.py' if you set hgk empty:

[extensions]
hgk=

You would also need to add hgk to your search path, or specify the path to hgk in your .hgrc file:

[hgk]
path=/location/of/hgk

<!> In version 0.7, this extension is named "hgit" (without the .py) and does not provide the view command. You must invoke hgk directly.

Now hg help will show the new commands provided by the hgk extension:

$ hg help
...
 status      show changed files in the working directory
 tag         add a tag for the current tip or a given revision
 tags        list repository tags
 tip         show the tip revision
 unbundle    apply a changegroup file
 undo        undo the last commit or pull
 update      update or merge working directory
 verify      verify the integrity of the repository
 version     output version and copyright information
 view        start interactive history viewer
$ hg view

HgkExtension (last edited 2014-04-23 12:33:48 by MartinGeisler)