Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2008-11-20 03:47:19
Size: 676
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 34: Line 34:
=== 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]
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)