hgext/mq.py
branchstable
changeset 11965 77f1f206e135
parent 11715 4f9dfb54c8b5
child 11970 fca15617721c
child 12067 a4fbbe0fbc38
--- a/hgext/mq.py	Thu Aug 19 10:59:37 2010 +0200
+++ b/hgext/mq.py	Wed Aug 18 02:43:45 2010 +0200
@@ -1487,8 +1487,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()