changeset 49284 | d44e3c45f0e4 |
parent 48946 | 642e31cb55f0 |
child 49609 | 9cac281eb9c0 |
child 49789 | df750b81272f |
49283:44b26349127b | 49284:d44e3c45f0e4 |
---|---|
394 |
394 |
395 def __len__(self): |
395 def __len__(self): |
396 return len(self._revisions) |
396 return len(self._revisions) |
397 |
397 |
398 def __iter__(self): |
398 def __iter__(self): |
399 return iter(pycompat.xrange(len(self._revisions))) |
399 return iter(range(len(self._revisions))) |
400 |
400 |
401 def hasnode(self, node): |
401 def hasnode(self, node): |
402 if node == sha1nodeconstants.nullid: |
402 if node == sha1nodeconstants.nullid: |
403 return False |
403 return False |
404 |
404 |