Show More
@@ -100,6 +100,9 b' class manifestdict(object):' | |||||
100 | def __getitem__(self, key): |
|
100 | def __getitem__(self, key): | |
101 | return self._lm[key][0] |
|
101 | return self._lm[key][0] | |
102 |
|
102 | |||
|
103 | def find(self, key): | |||
|
104 | return self._lm[key] | |||
|
105 | ||||
103 | def __len__(self): |
|
106 | def __len__(self): | |
104 | return len(self._lm) |
|
107 | return len(self._lm) | |
105 |
|
108 | |||
@@ -352,7 +355,7 b' class manifest(revlog.revlog):' | |||||
352 | return m.get(f), m.flags(f) |
|
355 | return m.get(f), m.flags(f) | |
353 | text = self.revision(node) |
|
356 | text = self.revision(node) | |
354 | try: |
|
357 | try: | |
355 |
return manifestdict(text). |
|
358 | return manifestdict(text).find(f) | |
356 | except KeyError: |
|
359 | except KeyError: | |
357 | return None, None |
|
360 | return None, None | |
358 |
|
361 |
General Comments 0
You need to be logged in to leave comments.
Login now