Mercurial > public > mercurial-scm > hg
comparison contrib/hgclient.py @ 22572:cc3d9f776632
test-commandserver: make runcommand message bolder
It seems ' runcommand' is difficult to distinguish from command output.
'*** runcommand' is slightly better.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 28 Sep 2014 17:21:38 +0900 |
parents | db497a1ef1c1 |
children | a94594f5d52f |
comparison
equal
deleted
inserted
replaced
22571:a9ff1b350f62 | 22572:cc3d9f776632 |
---|---|
30 def sep(text): | 30 def sep(text): |
31 return text.replace('\\', '/') | 31 return text.replace('\\', '/') |
32 | 32 |
33 def runcommand(server, args, output=sys.stdout, error=sys.stderr, input=None, | 33 def runcommand(server, args, output=sys.stdout, error=sys.stderr, input=None, |
34 outfilter=lambda x: x): | 34 outfilter=lambda x: x): |
35 print ' runcommand', ' '.join(args) | 35 print '*** runcommand', ' '.join(args) |
36 sys.stdout.flush() | 36 sys.stdout.flush() |
37 server.stdin.write('runcommand\n') | 37 server.stdin.write('runcommand\n') |
38 writeblock(server, '\0'.join(args)) | 38 writeblock(server, '\0'.join(args)) |
39 | 39 |
40 if not input: | 40 if not input: |