mq: incorporate mq repo config when using --mq
authorBrendan Cully <brendan@kublai.com>
Wed, 10 Feb 2010 10:58:11 -0800
changeset 10407 2e8926e9cc32
parent 10406 6586a6889f66
child 10408 50fb1fe143ff
mq: incorporate mq repo config when using --mq For example, incoming should use the paths defined in .hg/patches/hgrc instead of .hg/hgrc.
hgext/mq.py
--- 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"))]