changeset 19677:e11415510352

commitablectx: move date from workingctx
author Sean Farley <sean.michael.farley@gmail.com>
date Wed, 14 Aug 2013 16:03:32 -0500
parents 103525f36337
children 897c2dbc0256
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Thu Aug 15 10:57:43 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 16:03:32 2013 -0500
@@ -963,6 +963,8 @@
 
     def user(self):
         return self._user or self._repo.ui.username()
+    def date(self):
+        return self._date
 
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
@@ -990,8 +992,6 @@
             p = p[:-1]
         return [changectx(self._repo, x) for x in p]
 
-    def date(self):
-        return self._date
     def description(self):
         return self._text
     def files(self):