Mercurial > hg
diff mercurial/repository.py @ 34276:b90bd9a98c8b
blackbox: set lastui even if ui.log is not called (issue5518)
`lastui` decides where (where is the `.hg`) to use if the current `ui`
object does not have a `_bbrepo` associated. Previously it only gets set in
`ui.log`, which means unless a `ui` with repo associated calls `log` with
tracked event, blackbox does not know where to write its log. This patch
makes `reposetup` set `lastui` so it so we could log some more events (see
test changes).
Differential Revision: https://phab.mercurial-scm.org/D655
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 18 Sep 2017 16:01:03 -0700 |
parents | a0aad86b3b6a |
children | 0dfb5672f015 |