diff hgext/mq.py @ 11970:fca15617721c

merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 19 Aug 2010 10:25:41 -0500
parents 6e3875a80533 77f1f206e135
children 31f02288bbc4
line wrap: on
line diff
--- a/hgext/mq.py	Wed Jul 28 23:05:03 2010 -0600
+++ b/hgext/mq.py	Thu Aug 19 10:25:41 2010 -0500
@@ -1488,8 +1488,11 @@
             return True
 
     def qrepo(self, create=False):
+        ui = self.ui.copy()
+        ui.setconfig('paths', 'default', '', overlay=False)
+        ui.setconfig('paths', 'default-push', '', overlay=False)
         if create or os.path.isdir(self.join(".hg")):
-            return hg.repository(self.ui, path=self.path, create=create)
+            return hg.repository(ui, path=self.path, create=create)
 
     def restore(self, repo, rev, delete=None, qupdate=None):
         desc = repo[rev].description().strip()