# HG changeset patch # User Sean Farley # Date 2013-08-14 20:57:24 # Node ID 84249d49f37c1d1e47133f1bde3568bbd23718d4 # Parent ec5b2e2b947f9395004ebbbb47a5714969071f43 commitablectx: move user from workingctx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -957,6 +957,9 @@ class commitablectx(basectx): self._status = stat[:4] return stat + def user(self): + return self._user or self._repo.ui.username() + class workingctx(commitablectx): """A workingctx object makes access to data related to the current working directory convenient. @@ -987,8 +990,6 @@ class workingctx(commitablectx): p = p[:-1] return [changectx(self._repo, x) for x in p] - def user(self): - return self._user or self._repo.ui.username() def date(self): return self._date def description(self):