diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -937,6 +937,10 @@ class commitablectx(basectx): def _status(self): return self._repo.status()[:4] + @propertycache + def _user(self): + return self._repo.ui.username() + def status(self, ignored=False, clean=False, unknown=False): """Explicit status query Unless this method is used to query the working copy status, the @@ -973,10 +977,6 @@ class workingctx(commitablectx): yield f @propertycache - def _user(self): - return self._repo.ui.username() - - @propertycache def _date(self): return util.makedate()