Show More
@@ -41,7 +41,8 b' def read(repo):' | |||
|
41 | 41 | f = None |
|
42 | 42 | try: |
|
43 | 43 | f = repo.cachevfs(_filename(repo)) |
|
44 | cachekey = next(f).rstrip('\n').split(" ", 2) | |
|
44 | lineiter = iter(f) | |
|
45 | cachekey = next(lineiter).rstrip('\n').split(" ", 2) | |
|
45 | 46 | last, lrev = cachekey[:2] |
|
46 | 47 | last, lrev = bin(last), int(lrev) |
|
47 | 48 | filteredhash = None |
@@ -53,7 +54,7 b' def read(repo):' | |||
|
53 | 54 | # invalidate the cache |
|
54 | 55 | raise ValueError(r'tip differs') |
|
55 | 56 | cl = repo.changelog |
|
56 |
for l in |
|
|
57 | for l in lineiter: | |
|
57 | 58 | l = l.rstrip('\n') |
|
58 | 59 | if not l: |
|
59 | 60 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now