Differences between revisions 8 and 9
Revision 8 as of 2008-04-03 17:00:04
Size: 2004
Editor: abuehl
Comment:
Revision 9 as of 2008-04-12 17:00:52
Size: 1669
Editor: JoelRosdahl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:

A version working with Mercurial 0.9.3 (and maybe older) can be found here: http://hg.rosdahl.net/hggraphlog
Line 32: Line 30:
=== Questions ===
 * can this be used to produce data points for jquery [http://people.iola.dk/olau/flot/examples/ flot] library too?
Line 42: Line 37:
}}}

Or, if using the unbundled version:

{{{
[extensions]
graphlog = /path/to/graphlog.py
Line 60: Line 48:
-l/--limit LIMIT limit number of changes displayed
-p/--patch also show patch
-r/--rev REV show the specified revision or range
   --style STYLE display log using STYLE (e.g., "compact")
   --template TEMPLATE display log using TEMPLATE (e.g., "{desc}\n\n")
-l --limit LIMIT limit number of changes displayed
-p --patch show patch
-r --rev REV show the specified revision or range
   --style STYLE display using template map file STYLE (e.g., "compact")
   --template TEMPLATE display with template TEMPLATE (e.g., "{desc}\n\n")

Graph log extension

This extension is currently being distributed along with Mercurial.

Author: Joel Rosdahl

Overview

This extension adds a new command glog that behaves like (a subset of) the normal log command except that it also prints a graph representing the [:Revision:revision] history using ASCII characters to the left of the log. Example:

% hg glog
@    changeset:   4276:cb6107f78b92
|\   tag:         tip
| |  parent:      4269:73c918c71300
| |  parent:      4275:81402b2b294d
| |  user:        Matt Mackall <mpm@selenic.com>
| |  date:        Sat Mar 24 02:57:27 2007 -0500
| |  summary:     Merge with crew
| |
o |  changeset:   4275:81402b2b294d
| |  user:        Alexis S. L. Carvalho <alexis@cecm.usp.br>
| |  date:        Fri Mar 23 23:40:25 2007 -0300
| |  summary:     use os.path.islink instead of util.is_link
[...]

Nodes printed as an @ character are [:Parent:parents] of the [:WorkingDirectory:working directory]. Otherwise, the graph is hopefully self-explanatory.

Configuration

Enable this extension by adding the following lines to your configuration file ([:.hgrc:hgrc]):

[extensions]
hgext.graphlog = 

Usage

hg glog [OPTIONS]

where options are:

-l --limit LIMIT        limit number of changes displayed
-p --patch              show patch
-r --rev REV            show the specified revision or range
   --style STYLE        display using template map file STYLE (e.g., "compact")
   --template TEMPLATE  display with template TEMPLATE (e.g., "{desc}\n\n")


CategoryExtension

GraphlogExtension (last edited 2018-06-06 11:11:09 by AntonShestakov)