Patchwork [07,of,19] context: supporting updating the user of a workingctx

login
register
mail settings
Submitter David Schleimer
Date Feb. 10, 2013, 11:29 p.m.
Message ID <60a9efb86ef6d91bf13d.1360538997@dev010.prn1.facebook.com>
Download mbox | patch
Permalink /patch/947/
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 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.

Patch

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