Show More
@@ -60,6 +60,18 b' class changectx(object):' | |||||
60 | else: |
|
60 | else: | |
61 | raise AttributeError, name |
|
61 | raise AttributeError, name | |
62 |
|
62 | |||
|
63 | def __contains__(self, key): | |||
|
64 | return key in self._manifest | |||
|
65 | ||||
|
66 | def __getitem__(self, key): | |||
|
67 | return self.filectx(key) | |||
|
68 | ||||
|
69 | def __iter__(self): | |||
|
70 | a = self._manifest.keys() | |||
|
71 | a.sort() | |||
|
72 | for f in a: | |||
|
73 | return f | |||
|
74 | ||||
63 | def changeset(self): return self._changeset |
|
75 | def changeset(self): return self._changeset | |
64 | def manifest(self): return self._manifest |
|
76 | def manifest(self): return self._manifest | |
65 |
|
77 |
General Comments 0
You need to be logged in to leave comments.
Login now