Show More
@@ -93,19 +93,11 b' class monotone_source(converter_source, ' | |||
|
93 | 93 | def mtnisfile(self, name, rev): |
|
94 | 94 | # a non-file could be a directory or a deleted or renamed file |
|
95 | 95 | self.mtnloadmanifest(rev) |
|
96 | try: | |
|
97 | self.files[name] | |
|
98 | return True | |
|
99 | except KeyError: | |
|
100 | return False | |
|
96 | return name in self.files | |
|
101 | 97 | |
|
102 | 98 | def mtnisdir(self, name, rev): |
|
103 | 99 | self.mtnloadmanifest(rev) |
|
104 | try: | |
|
105 | self.dirs[name] | |
|
106 | return True | |
|
107 | except KeyError: | |
|
108 | return False | |
|
100 | return name in self.dirs | |
|
109 | 101 | |
|
110 | 102 | def mtngetcerts(self, rev): |
|
111 | 103 | certs = {"author":"<missing>", "date":"<missing>", |
@@ -190,11 +182,8 b' class monotone_source(converter_source, ' | |||
|
190 | 182 | |
|
191 | 183 | def getmode(self, name, rev): |
|
192 | 184 | self.mtnloadmanifest(rev) |
|
193 | try: | |
|
194 | node, attr = self.files[name] | |
|
195 | return attr | |
|
196 | except KeyError: | |
|
197 | return "" | |
|
185 | node, attr = self.files.get(name, (None, "")) | |
|
186 | return attr | |
|
198 | 187 | |
|
199 | 188 | def getfile(self, name, rev): |
|
200 | 189 | if not self.mtnisfile(name, rev): |
General Comments 0
You need to be logged in to leave comments.
Login now