LaDissertation.com - Dissertations, fiches de lectures, exemples du BAC
Recherche

L'extension de HGK (document en anglais)

Cours : L'extension de HGK (document en anglais). Recherche parmi 298 000+ dissertations

Par   •  20 Février 2013  •  Cours  •  273 Mots (2 Pages)  •  1 082 Vues

Page 1 sur 2

Hgk extension

This is an unloved feature.

This extension is currently being distributed along with Mercurial.

Author: Chris Mason

Overview

The hgk extension allows browsing the history of a repository in a graphical way. It requires Tcl/Tk version 8.4 or later. (Tcl/Tk is not distributed with Mercurial.)

Configuration

As of be20a42f27a1 changeset (in 1.0 and later), Tcl .gitk configuration file was renamed to .hgk to help people working with both gitk and hgk.

hgk consists of two parts: a Tcl script that does the displaying and querying of information, and an extension to mercurial named hgk.py, which provides hooks for hgk to get information. hgk can be found in the contrib directory, and hgk.py can be found in the hgext directory.

To load the hgk.py extension, add it to your .hgrc file (you have to use your global $HOME/.hgrc file, not one in a repository). 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=

The hg view command will launch the hgk Tcl script. For this command to work, hgk must be in your search path. Alternately, you can specify the path to hgk in your .hgrc file:

[hgk]

path=/location/of/hgk

Note: Many Linux distributions include the hgk.py extension in the mercurial package, but not the hgk Tcl script. If this is the case, you can find it in the contrib directory of the main Mercurial tar.gz from the download section. WARNING: if you fetch the contrib directory by hand, be careful to get the one that matches your version of Mercurial! Be aware that hgk requires /usr/bin/wish - which (at least on Fedora) is in the tk package.

...

Télécharger au format  txt (1.7 Kb)   pdf (50.4 Kb)   docx (8.5 Kb)  
Voir 1 page de plus »
Uniquement disponible sur LaDissertation.com