tests/printrepr.py
author Yuya Nishihara <yuya@tcha.org>
Thu, 08 Apr 2010 00:13:33 +0900
branchstable
changeset 10953 f1250e2e8fd1
parent 10263 25e572394f5c
permissions -rwxr-xr-x
remoteui: copy http_proxy settings http_proxy settings of current repo's .hg/hgrc should be available on remoteui, so that the httprepo can use them when pulling via http.

#!/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
# GNU General Public License version 2 or any later version.

"""prints repr(sys.stdin) but preserves newlines in input"""

import sys
print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'),