[PATCH 07 of 19] context: supporting updating the user of a workingctx
David Schleimer
dschleimer at fb.com
Sun Feb 10 17:29:57 CST 2013
# HG changeset patch
# User David Schleimer <dschleimer at fb.com>
# Date 1360330570 28800
# Node ID 60a9efb86ef6d91bf13d131cade4158b81fa2a58
# Parent 9ad2e26501309255cd0877eec64822e11ae4a540
context: supporting updating the user 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
@@ -970,6 +970,8 @@
return self._manifest
def user(self):
return self._user or self._repo.ui.username()
+ def setuser(self, user):
+ self._user = user
def date(self):
return self._date
def setdate(self, date):
More information about the Mercurial-devel
mailing list