equal
deleted
inserted
replaced
1105 stop = length |
1105 stop = length |
1106 return pycompat.xrange(start, stop, step) |
1106 return pycompat.xrange(start, stop, step) |
1107 |
1107 |
1108 @util.propertycache |
1108 @util.propertycache |
1109 def nodemap(self): |
1109 def nodemap(self): |
1110 self.rev(self.node(0)) |
1110 if self.index: |
|
1111 # populate mapping down to the initial node |
|
1112 self.rev(self.node(0)) |
1111 return self._nodecache |
1113 return self._nodecache |
1112 |
1114 |
1113 def hasnode(self, node): |
1115 def hasnode(self, node): |
1114 try: |
1116 try: |
1115 self.rev(node) |
1117 self.rev(node) |