[PATCH 07 of 12 RFC v2] dispatch: refresh the request repo with the ui object

Idan Kamara idankk86 at gmail.com
Wed Jun 15 16:09:19 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1308171085 -10800
# Node ID ed35f16e06099b9bd47be94cc1e669305c0d67f8
# Parent  e07023e255e64145d73b2e709a0a7e92d9ff5191
dispatch: refresh the request repo with the ui object

so the repos ui is aware of --verbose/debug passed in the command line

diff -r e07023e255e6 -r ed35f16e0609 mercurial/dispatch.py
--- a/mercurial/dispatch.py	Tue Jun 07 13:39:09 2011 +0300
+++ b/mercurial/dispatch.py	Wed Jun 15 23:51:25 2011 +0300
@@ -622,7 +622,9 @@
         if not rpath:
             repo = req.repo
 
-        if not repo:
+        if repo:
+            repo.refreshui(ui)
+        else:
             try:
                 repo = hg.repository(ui, path=path)
                 ui = repo.ui


More information about the Mercurial-devel mailing list