# HG changeset patch # User Idan Kamara # Date 2011-06-24 16:38:28 # Node ID 23325c5ef6a7d537f8106de1869b2aaca9b15c67 # Parent 84a680daa4b222caa4093d520e7910da2536adc3 dispatch: set descriptors on the request repo.ui diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -622,7 +622,12 @@ def _dispatch(req): if not rpath: repo = req.repo - if not repo: + if repo: + # set the descriptors of the repo ui to those of ui + repo.ui.fin = ui.fin + repo.ui.fout = ui.fout + repo.ui.ferr = ui.ferr + else: try: repo = hg.repository(ui, path=path) if not repo.local():