changeset 1841:72a58a5bfb62

topic: use repo.set() where we need a changectx anyway I always forget repo.set() exists and use repo.revs(). Sigh.
author Augie Fackler <augie@google.com>
date Wed, 10 Jun 2015 14:59:46 -0400
parents 2321fd2ed56e
children 94bbc18daa99
files src/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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