[PATCH 06 of 19] context: allow updating the date of a workingctx

David Schleimer dschleimer at fb.com
Sun Feb 10 23:29:56 UTC 2013


# HG changeset patch
# User David Schleimer <dschleimer at fb.com>
# Date 1360330569 28800
# Node ID 9ad2e26501309255cd0877eec64822e11ae4a540
# Parent  56ec15753a5264b0713bf5cafa484f342d1803c7
context: allow updating the date of a workingctx

This is not currently used, but will be used by future patches as part
of an effort to unify workingctx and memctx, with an eventual goal of
supporitng in-memory merges for graft.

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -972,6 +972,8 @@
         return self._user or self._repo.ui.username()
     def date(self):
         return self._date
+    def setdate(self, date):
+        self._date = date
     def description(self):
         return self._text
     def setdescription(self, text):



More information about the Mercurial-devel mailing list