Commits

Anonymous committed f9c4ffa

rebranch: using changelog directly instead of getitem of localrepo

This fixes a nasty recursion bug.

Comments (0)

Files changed (1)

                 if name not in branchcache:
                     branchcache.append(name)
                 bindex=branchcache.index(name)
-                start = self[rule[0]].rev()
-                visit = [self[rule[1]].rev()]
+                start = c.rev(rule[0])
+                visit = [c.rev(rule[1])]
                 reachable = {visit[0]:[]}
                 while visit:
                     n = visit.pop(0)
 
         allrebranches = []
 
-        findglobalrebranches(self.ui, self, allrebranches)
+        findglobalrebranches(self.ui, self, allrebranches)        
         readlocalrebranches(self.ui, self, allrebranches)
 
         return allrebranches