433 topic = getattr(self, '_autobranchmaptopic', False) |
433 topic = getattr(self, '_autobranchmaptopic', False) |
434 topicfilter = topicmap.topicfilter(self.filtername) |
434 topicfilter = topicmap.topicfilter(self.filtername) |
435 if not topic or topicfilter == self.filtername: |
435 if not topic or topicfilter == self.filtername: |
436 return super(topicrepo, self).branchmap() |
436 return super(topicrepo, self).branchmap() |
437 return self.filtered(topicfilter).branchmap() |
437 return self.filtered(topicfilter).branchmap() |
|
438 |
|
439 def branchheads(self, branch=None, start=None, closed=False): |
|
440 if branch is None: |
|
441 branch = self[None].branch() |
|
442 if self.currenttopic: |
|
443 branch = "%s:%s" % (branch, self.currenttopic) |
|
444 return super(topicrepo, self).branchheads(branch=branch, |
|
445 start=start, |
|
446 closed=closed) |
438 |
447 |
439 def invalidatevolatilesets(self): |
448 def invalidatevolatilesets(self): |
440 # XXX we might be able to move this to something invalidated less often |
449 # XXX we might be able to move this to something invalidated less often |
441 super(topicrepo, self).invalidatevolatilesets() |
450 super(topicrepo, self).invalidatevolatilesets() |
442 self._topics = None |
451 self._topics = None |