Show More
@@ -22,7 +22,7 b' def read(repo):' | |||||
22 | lines = f.read().split('\n') |
|
22 | lines = f.read().split('\n') | |
23 | f.close() |
|
23 | f.close() | |
24 | except (IOError, OSError): |
|
24 | except (IOError, OSError): | |
25 |
return |
|
25 | return None | |
26 |
|
26 | |||
27 | try: |
|
27 | try: | |
28 | cachekey = lines.pop(0).split(" ", 2) |
|
28 | cachekey = lines.pop(0).split(" ", 2) | |
@@ -53,7 +53,7 b' def read(repo):' | |||||
53 | msg += ' (%s)' % repo.filtername |
|
53 | msg += ' (%s)' % repo.filtername | |
54 | msg += ': %s\n' |
|
54 | msg += ': %s\n' | |
55 | repo.ui.warn(msg % inst) |
|
55 | repo.ui.warn(msg % inst) | |
56 |
partial = |
|
56 | partial = None | |
57 | return partial |
|
57 | return partial | |
58 |
|
58 | |||
59 |
|
59 | |||
@@ -65,6 +65,8 b' def updatecache(repo):' | |||||
65 |
|
65 | |||
66 | if partial is None or not partial.validfor(repo): |
|
66 | if partial is None or not partial.validfor(repo): | |
67 | partial = read(repo) |
|
67 | partial = read(repo) | |
|
68 | if partial is None: | |||
|
69 | partial = branchcache() | |||
68 |
|
70 | |||
69 | catip = repo._cacheabletip() |
|
71 | catip = repo._cacheabletip() | |
70 | # if partial.tiprev == catip: cache is already up to date |
|
72 | # if partial.tiprev == catip: cache is already up to date |
General Comments 0
You need to be logged in to leave comments.
Login now