comparison mercurial/localrepo.py @ 3720:5cc99f4b5041

add a comment about '\n' and '\r' and streaming clone
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 28 Nov 2006 19:11:46 +0100
parents 8ae88ed2a3b6
children 98f2507c5551
comparison
equal deleted inserted replaced
3719:199dcb97a5b6 3720:5cc99f4b5041
1839 _('Unexpected response from remote server:'), l) 1839 _('Unexpected response from remote server:'), l)
1840 self.ui.status(_('%d files to transfer, %s of data\n') % 1840 self.ui.status(_('%d files to transfer, %s of data\n') %
1841 (total_files, util.bytecount(total_bytes))) 1841 (total_files, util.bytecount(total_bytes)))
1842 start = time.time() 1842 start = time.time()
1843 for i in xrange(total_files): 1843 for i in xrange(total_files):
1844 # XXX doesn't support '\n' or '\r' in filenames
1844 l = fp.readline() 1845 l = fp.readline()
1845 try: 1846 try:
1846 name, size = l.split('\0', 1) 1847 name, size = l.split('\0', 1)
1847 size = int(size) 1848 size = int(size)
1848 except ValueError, TypeError: 1849 except ValueError, TypeError: