Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Oct 21 00:15:55 2005 -0700 +++ b/mercurial/commands.py Mon Oct 24 14:34:48 2005 -0700 @@ -1512,6 +1512,10 @@ fin, fout = sys.stdin, sys.stdout sys.stdout = sys.stderr + # Prevent insertion/deletion of CRs + util.set_binary(fin) + util.set_binary(fout) + def getarg(): argline = fin.readline()[:-1] arg, l = argline.split()