changeset 19689:8dbb66f339f3

commitablectx: move extra from workingctx
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 14 Aug 2013 16:23:28 -0500
parents 21e1068109a7
children 65ff9fd67d8d
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Wed Aug 14 16:23:16 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:23:28 2013 -0500
@@ -991,6 +991,8 @@
         return encoding.tolocal(self._extra['branch'])
     def closesbranch(self):
         return 'close' in self._extra
+    def extra(self):
+        return self._extra
 
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
@@ -1018,9 +1020,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def extra(self):
-        return self._extra
-
     def tags(self):
         t = []
         for p in self.parents():