equal
deleted
inserted
replaced
193 def lookup(self, id): |
193 def lookup(self, id): |
194 try: |
194 try: |
195 rev = int(id) |
195 rev = int(id) |
196 if str(rev) != id: raise ValueError |
196 if str(rev) != id: raise ValueError |
197 if rev < 0: rev = self.count() + rev |
197 if rev < 0: rev = self.count() + rev |
198 if rev < 0 or rev >= self.count: raise ValueError |
198 if rev < 0 or rev >= self.count(): raise ValueError |
199 return self.node(rev) |
199 return self.node(rev) |
200 except (ValueError, OverflowError): |
200 except (ValueError, OverflowError): |
201 c = [] |
201 c = [] |
202 for n in self.nodemap: |
202 for n in self.nodemap: |
203 if hex(n).startswith(id): |
203 if hex(n).startswith(id): |