changeset 14744:23325c5ef6a7 stable

dispatch: set descriptors on the request repo.ui
author Idan Kamara <idankk86@gmail.com>
date Fri, 24 Jun 2011 19:38:28 +0300
parents 84a680daa4b2
children cae09a39b2d2
files mercurial/dispatch.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Fri Jun 24 19:36:44 2011 +0300
+++ b/mercurial/dispatch.py	Fri Jun 24 19:38:28 2011 +0300
@@ -622,7 +622,12 @@
         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():