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

login
register
mail settings
Submitter David Schleimer
Date Feb. 10, 2013, 11:29 p.m.
Message ID <9ad2e26501309255cd08.1360538996@dev010.prn1.facebook.com>
Download mbox | patch
Permalink /patch/946/
State Changes Requested
Headers show

Comments

David Schleimer - Feb. 10, 2013, 11:29 p.m.
# HG changeset patch
# User David Schleimer <dschleimer@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.
Bryan O'Sullivan - Feb. 11, 2013, 8:54 p.m.
On Sun, Feb 10, 2013 at 3:29 PM, David Schleimer <dschleimer@fb.com> wrote:

> supporitng


ytpo

Patch

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):