##// END OF EJS Templates
dispatch: provide help for disabled extensions and commands...
dispatch: provide help for disabled extensions and commands Before a command is declared unknown, each extension in hgext is searched, starting with hgext.<cmdname>. If there's a matching command, a help message suggests the appropriate extension and how to enable it. Every extension could potentially be imported, but for cases like rebase, relink, etc. only one extension is imported. For the case of "hg help disabledext", if the extension is in hgext, the extension description is read and a similar help suggestion is printed. No extension import occurs.

File last commit:

r10263:25e57239 stable
r10364:de1e7099 default
Show More
printrepr.py
11 lines | 351 B | text/x-python | PythonLexer
Martin Geisler
tests: renamed helper to avoid clash with stdlib repr module
r8448 #!/usr/bin/env python
#
# Copyright 2009 Matt Mackall <mpm@selenic.com> and others
#
# This software may be used and distributed according to the terms of the
Matt Mackall
Update license to GPLv2+
r10263 # GNU General Public License version 2 or any later version.
Martin Geisler
tests: renamed helper to avoid clash with stdlib repr module
r8448
"""prints repr(sys.stdin) but preserves newlines in input"""
import sys
print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'),