mercurial/commands.py
changeset 1420 b32b3509c7ab
parent 1415 c6e6ca96a033
child 1424 918cb47d725e
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))