diff hgext/mq.py @ 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 d216fa04e48a
children b59fba37e5e6
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"))]