##// END OF EJS Templates
windows: add win32com.shell to demandimport ignore list...
windows: add win32com.shell to demandimport ignore list Module 'appdirs' tries to import win32com.shell (and catch ImportError as an indication of failure) to check whether some further functionality should be implemented one or another way [1]. Of course, demandimport lets it down, so if we want appdirs to work we have to add it to demandimport's ignore list. The reason we want appdirs to work is becuase it is used by setuptools [2] to determine egg cache location. Only fairly recent versions of setuptools depend on this so people don't see this often. [1] https://github.com/ActiveState/appdirs/blob/master/appdirs.py#L560 [2] https://github.com/pypa/setuptools/blob/aae0a928119d2a178882c32bded02270e30d0273/pkg_resources/__init__.py#L1369

File last commit:

r31007:bfdb0741 default
r31990:3e03a4b9 default
Show More
dummyssh
26 lines | 590 B | text/plain | TextLexer
Mads Kiilerich
tests: share dummyssh
r14186 #!/usr/bin/env python
Pulkit Goyal
py3: make tests/dummyssh use absolute_import
r29159 from __future__ import absolute_import
import os
Mads Kiilerich
tests: share dummyssh
r14186 import sys
os.chdir(os.getenv('TESTTMP'))
if sys.argv[1] != "user@dummy":
sys.exit(-1)
Jun Wu
dummyssh: use LOCALIP...
r31007 os.environ["SSH_CLIENT"] = "%s 1 2" % os.environ.get('LOCALIP', '127.0.0.1')
Mads Kiilerich
tests: share dummyssh
r14186
log = open("dummylog", "ab")
log.write("Got arguments")
for i, arg in enumerate(sys.argv[1:]):
Augie Fackler
dummyssh: fix check-code nit
r19320 log.write(" %d:%s" % (i + 1, arg))
Mads Kiilerich
tests: share dummyssh
r14186 log.write("\n")
log.close()
Mads Kiilerich
tests: make simple single quotes work with dummyssh on windows...
r15768 hgcmd = sys.argv[2]
if os.name == 'nt':
# hack to make simple unix single quote quoting work on windows
hgcmd = hgcmd.replace("'", '"')
r = os.system(hgcmd)
Mads Kiilerich
tests: share dummyssh
r14186 sys.exit(bool(r))