Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2008-11-20 03:47:19
Size: 676
Comment:
Revision 4 as of 2008-11-24 11:45:23
Size: 1295
Comment: improved configuration description
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
rcpath = path/to/fixcase.py hgext.rcpath =
#or, if rcpath.py is not in the hgext folder:
#rpcath = /path/to/rcpath.py
Line 34: Line 37:
=== 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
}}}

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

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)