equal
deleted
inserted
replaced
5 # format to stdout. |
5 # format to stdout. |
6 # |
6 # |
7 # $ ./hg serve --cmds pipe | ./contrib/debugcmdserver.py - |
7 # $ ./hg serve --cmds pipe | ./contrib/debugcmdserver.py - |
8 # o, 52 -> 'capabilities: getencoding runcommand\nencoding: UTF-8' |
8 # o, 52 -> 'capabilities: getencoding runcommand\nencoding: UTF-8' |
9 |
9 |
10 from __future__ import absolute_import, print_function |
|
11 import struct |
10 import struct |
12 import sys |
11 import sys |
13 |
12 |
14 if len(sys.argv) != 2: |
13 if len(sys.argv) != 2: |
15 print('usage: debugcmdserver.py FILE') |
14 print('usage: debugcmdserver.py FILE') |