Differences between revisions 1 and 2
Revision 1 as of 2007-04-25 15:57:07
Size: 294
Editor: BrendanCully
Comment: Add extension template
Revision 2 as of 2008-04-06 13:18:09
Size: 1083
Editor: PaulMoore
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Extension Name == == Info Extension ==
Line 3: Line 3:
'''This extension is/is not distributed with Mercurial.''' '''This extension is not distributed with Mercurial.'''
Line 5: Line 5:
''Author: '' ''Author: Paul Moore''
Line 7: Line 7:
Download site: Download site: Download direct from this page - attachment:info.py
Line 10: Line 10:

This extension displays basic information about a (local) repository. The information displayed includes:
 * The repository root.
 * The "base hash" - the changeset ID of revision 0 of the repository. This is the nearest equivalent of a unique identifier for the repository.
 * The number of revisions present in the repository.
 * The number of files in the tip revision.
 * The location (if any) from which this repository was cloned.
 * The default push location for the repository.

An example of usage:
{{{
>hg info
Repository: C:\Data\Mercurial\crew
Base Hash: 9117c6561b0bd7792fa13b50d28239d51b78e51f
Revisions: 6469
Files: 787
Cloned From: http://hg.intevation.org/mercurial/crew
}}}
Line 16: Line 34:
... info = path/to/info.py

Info Extension

This extension is not distributed with Mercurial.

Author: Paul Moore

Download site: Download direct from this page - attachment:info.py

Overview

This extension displays basic information about a (local) repository. The information displayed includes:

  • The repository root.
  • The "base hash" - the changeset ID of revision 0 of the repository. This is the nearest equivalent of a unique identifier for the repository.
  • The number of revisions present in the repository.
  • The number of files in the tip revision.
  • The location (if any) from which this repository was cloned.
  • The default push location for the repository.

An example of usage:

>hg info
Repository: C:\Data\Mercurial\crew
Base Hash: 9117c6561b0bd7792fa13b50d28239d51b78e51f
Revisions: 6469
Files: 787
Cloned From: http://hg.intevation.org/mercurial/crew

Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
info = path/to/info.py


CategoryExtension

Extension Template (last edited 2017-04-29 03:38:34 by mrzv)