changeset 10407:2e8926e9cc32

mq: incorporate mq repo config when using --mq For example, incoming should use the paths defined in .hg/patches/hgrc instead of .hg/hgrc.
author Brendan Cully <brendan@kublai.com>
date Wed, 10 Feb 2010 10:58:11 -0800
parents 6586a6889f66
children 50fb1fe143ff
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Tue Feb 09 01:12:29 2010 +0100
+++ b/hgext/mq.py	Wed Feb 10 10:58:11 2010 -0800
@@ -2660,7 +2660,7 @@
     r = q.qrepo()
     if not r:
         raise util.Abort('no queue repository')
-    return orig(ui, r, *args, **kwargs)
+    return orig(r.ui, r, *args, **kwargs)
 
 def uisetup(ui):
     mqopt = [('Q', 'mq', None, _("operate on patch repository"))]