commitablectx: move description from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 16:09:30 -0500
changeset 19678 897c2dbc0256
parent 19677 e11415510352
child 19679 f21804f1582e
commitablectx: move description from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 16:03:32 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:09:30 2013 -0500
@@ -965,6 +965,8 @@
         return self._user or self._repo.ui.username()
     def date(self):
         return self._date
+    def description(self):
+        return self._text
 
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
@@ -992,8 +994,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def description(self):
-        return self._text
     def files(self):
         return sorted(self._status[0] + self._status[1] + self._status[2])