topic: use repo.set() where we need a changectx anyway
authorAugie Fackler <augie@google.com>
Wed, 10 Jun 2015 14:59:46 -0400
changeset 1841 72a58a5bfb62
parent 1840 2321fd2ed56e
child 1842 94bbc18daa99
topic: use repo.set() where we need a changectx anyway I always forget repo.set() exists and use repo.revs(). Sigh.
src/topic/__init__.py
--- a/src/topic/__init__.py	Wed Jun 10 14:59:05 2015 -0400
+++ b/src/topic/__init__.py	Wed Jun 10 14:59:46 2015 -0400
@@ -43,8 +43,7 @@
         @property
         def topics(self):
             topics = set(['', self.currenttopic])
-            for rev in self.revs('not public()'):
-                c = self.changectx(rev)
+            for c in self.set('not public()'):
                 topics.add(c.extra().get('topic', ''))
             topics.remove('')
             return topics