Show More
@@ -10,9 +10,9 b' This software may be used and distribute' | |||||
10 | of the GNU General Public License, incorporated herein by reference. |
|
10 | of the GNU General Public License, incorporated herein by reference. | |
11 | """ |
|
11 | """ | |
12 |
|
12 | |||
13 | import zlib, struct, sha, binascii, heapq |
|
|||
14 | import mdiff |
|
|||
15 | from node import * |
|
13 | from node import * | |
|
14 | from demandload import demandload | |||
|
15 | demandload(globals(), "binascii errno heapq mdiff sha struct urllib2 zlib") | |||
16 |
|
16 | |||
17 | def hash(text, p1, p2): |
|
17 | def hash(text, p1, p2): | |
18 | """generate a hash from the given text and its parent hashes |
|
18 | """generate a hash from the given text and its parent hashes | |
@@ -179,7 +179,11 b' class revlog:' | |||||
179 |
|
179 | |||
180 | try: |
|
180 | try: | |
181 | i = self.opener(self.indexfile).read() |
|
181 | i = self.opener(self.indexfile).read() | |
182 |
except |
|
182 | except urllib2.URLError: | |
|
183 | raise | |||
|
184 | except IOError, inst: | |||
|
185 | if inst.errno != errno.ENOENT: | |||
|
186 | raise | |||
183 | i = "" |
|
187 | i = "" | |
184 |
|
188 | |||
185 | if len(i) > 10000: |
|
189 | if len(i) > 10000: |
General Comments 0
You need to be logged in to leave comments.
Login now