Differences between revisions 2 and 3
Revision 2 as of 2008-11-23 12:05:11
Size: 1228
Comment:
Revision 3 as of 2008-11-23 12:14:58
Size: 1228
Comment: fixed minor errors on page
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
rcpath = path/to/fixcase.py rcpath = path/to/rcpath.py
Line 43: Line 43:
Comparing to the prior output, the first 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. 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.

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]
rcpath = 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

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.

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)