Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 1420:b32b3509c7ab
Avoid insertion/deletion of CRs on stdio during hg serve
author | olivier.maquelin@intel.com |
---|---|
date | Mon, 24 Oct 2005 14:34:48 -0700 |
parents | c6e6ca96a033 |
children | 918cb47d725e |
comparison
equal
deleted
inserted
replaced
1419:22041f754f4a | 1420:b32b3509c7ab |
---|---|
1509 """export the repository via HTTP""" | 1509 """export the repository via HTTP""" |
1510 | 1510 |
1511 if opts["stdio"]: | 1511 if opts["stdio"]: |
1512 fin, fout = sys.stdin, sys.stdout | 1512 fin, fout = sys.stdin, sys.stdout |
1513 sys.stdout = sys.stderr | 1513 sys.stdout = sys.stderr |
1514 | |
1515 # Prevent insertion/deletion of CRs | |
1516 util.set_binary(fin) | |
1517 util.set_binary(fout) | |
1514 | 1518 |
1515 def getarg(): | 1519 def getarg(): |
1516 argline = fin.readline()[:-1] | 1520 argline = fin.readline()[:-1] |
1517 arg, l = argline.split() | 1521 arg, l = argline.split() |
1518 val = fin.read(int(l)) | 1522 val = fin.read(int(l)) |