Mercurial > hg
changeset 19675:84249d49f37c
commitablectx: move user from workingctx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 15:57:24 -0500 |
parents | ec5b2e2b947f |
children | 103525f36337 |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Thu Aug 15 10:51:53 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 15:57:24 2013 -0500 @@ -957,6 +957,9 @@ 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 @@ 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):