Show More
@@ -444,7 +444,10 b' class revlog(object):' | |||||
444 | i = '' |
|
444 | i = '' | |
445 | try: |
|
445 | try: | |
446 | f = self.opener(self.indexfile) |
|
446 | f = self.opener(self.indexfile) | |
447 | i = f.read(_prereadsize) |
|
447 | if "nonlazy" in getattr(self.opener, 'options', {}): | |
|
448 | i = f.read() | |||
|
449 | else: | |||
|
450 | i = f.read(_prereadsize) | |||
448 | if len(i) > 0: |
|
451 | if len(i) > 0: | |
449 | v = struct.unpack(versionformat, i[:4])[0] |
|
452 | v = struct.unpack(versionformat, i[:4])[0] | |
450 | except IOError, inst: |
|
453 | except IOError, inst: |
@@ -77,6 +77,7 b' def build_opener(ui, authinfo):' | |||||
77 | return httprangereader(f, urlopener) |
|
77 | return httprangereader(f, urlopener) | |
78 | return o |
|
78 | return o | |
79 |
|
79 | |||
|
80 | opener.options = {'nonlazy': 1} | |||
80 | return opener |
|
81 | return opener | |
81 |
|
82 | |||
82 | class statichttprepository(localrepo.localrepository): |
|
83 | class statichttprepository(localrepo.localrepository): |
General Comments 0
You need to be logged in to leave comments.
Login now