hgext/sqlitestore.py
changeset 40387 f1a39128da95
parent 40326 fed697fa1734
child 40389 1b183edbb68e
equal deleted inserted replaced
40386:4a81d82474e9 40387:f1a39128da95
   379         return len(self._revisions)
   379         return len(self._revisions)
   380 
   380 
   381     def __iter__(self):
   381     def __iter__(self):
   382         return iter(pycompat.xrange(len(self._revisions)))
   382         return iter(pycompat.xrange(len(self._revisions)))
   383 
   383 
       
   384     def hasnode(self, node):
       
   385         if node == nullid:
       
   386             return False
       
   387 
       
   388         return node in self._nodetorev
       
   389 
   384     def revs(self, start=0, stop=None):
   390     def revs(self, start=0, stop=None):
   385         return storageutil.iterrevs(len(self._revisions), start=start,
   391         return storageutil.iterrevs(len(self._revisions), start=start,
   386                                     stop=stop)
   392                                     stop=stop)
   387 
   393 
   388     def parents(self, node):
   394     def parents(self, node):