changeset 19676:103525f36337

commitablectx: move _date from workingctx
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 15 Aug 2013 10:57:43 -0500
parents 84249d49f37c
children e11415510352
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Wed Aug 14 15:57:24 2013 -0500
+++ b/mercurial/context.py	Thu Aug 15 10:57:43 2013 -0500
@@ -941,6 +941,10 @@
     def _user(self):
         return self._repo.ui.username()
 
+    @propertycache
+    def _date(self):
+        return util.makedate()
+
     def status(self, ignored=False, clean=False, unknown=False):
         """Explicit status query
         Unless this method is used to query the working copy status, the
@@ -980,10 +984,6 @@
                 yield f
 
     @propertycache
-    def _date(self):
-        return util.makedate()
-
-    @propertycache
     def _parents(self):
         p = self._repo.dirstate.parents()
         if p[1] == nullid: