Differences between revisions 4 and 5
Revision 4 as of 2008-11-24 11:45:23
Size: 1295
Comment: improved configuration description
Revision 5 as of 2008-11-24 12:01:32
Size: 1295
Comment: minor wording
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
Configure your .hgrc to enable the extension by adding following lines: Configure your `.hgrc` to enable the extension by adding following lines:
Line 46: Line 46:
Comparing to the prior output, the second output line of this example did not appear above showing that in addition to the pathnames that are being used that C:\Users\Jones\mercurial.ini could potentially be used as well. The second output line of the following example did not appear in the previous example showing that in addition to the pathnames that are being used that `C:\Users\Jones\mercurial.ini` could potentially be used as well.

RcpathExtension

This extension is not distributed with Mercurial.

Author: G. Grothendieck

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

Overview

This extension displays Mercurial configuration file paths and names.

hg rcpath

show path/file names to startup files

options:

 -a --all         all path/names that could be used
 -d --duplicates  retain duplicates

use "hg -v help rcpath" to show global options

Configuration

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

[extensions]
hgext.rcpath =
#or, if rcpath.py is not in the hgext folder:
#rpcath = /path/to/rcpath.py

Examples

Here is an example of use. The first shows the two rc files that are currently being used.

C:\>hg rcpath
C:\Program Files\TortoiseHg\mercurial.ini
C:\Users\Jones\.hgrc

The second output line of the following example did not appear in the previous example showing that in addition to the pathnames that are being used that C:\Users\Jones\mercurial.ini could potentially be used as well.

C:\>hg rcpath -a
C:\Program Files\TortoiseHg\mercurial.ini
C:\Users\Jones\mercurial.ini
C:\Users\Jones\.hgrc


CategoryExtension

RcpathExtension (last edited 2013-04-15 14:49:55 by fw-tnat)