From patchwork Sun Feb 10 23:29:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06,of,19] context: allow updating the date of a workingctx From: David Schleimer X-Patchwork-Id: 946 Message-Id: <9ad2e26501309255cd08.1360538996@dev010.prn1.facebook.com> To: mercurial-devel@selenic.com Date: Sun, 10 Feb 2013 15:29:56 -0800 # HG changeset patch # User David Schleimer # 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):