commitablectx: move tags from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 16:24:16 -0500
changeset 19690 65ff9fd67d8d
parent 19689 8dbb66f339f3
child 19691 33ae2052d924
commitablectx: move tags from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 16:23:28 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:24:16 2013 -0500
@@ -994,6 +994,12 @@
     def extra(self):
         return self._extra
 
+    def tags(self):
+        t = []
+        for p in self.parents():
+            t.extend(p.tags())
+        return t
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
@@ -1020,12 +1026,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def tags(self):
-        t = []
-        for p in self.parents():
-            t.extend(p.tags())
-        return t
-
     def bookmarks(self):
         b = []
         for p in self.parents():