mercurial/dispatch.py
changeset 6142 50a277e6ceae
parent 6141 90e5c82a3859
parent 6105 6480af8fd53c
child 6150 aafdea37f796
--- a/mercurial/dispatch.py	Mon Feb 18 19:20:22 2008 +0100
+++ b/mercurial/dispatch.py	Mon Feb 18 19:21:33 2008 +0100
@@ -340,9 +340,9 @@
         try:
             repo = hg.repository(ui, path=path)
             ui = repo.ui
-            ui.setconfig("bundle", "mainreporoot", repo.root)
             if not repo.local():
                 raise util.Abort(_("repository '%s' is not local") % path)
+            ui.setconfig("bundle", "mainreporoot", repo.root)
         except hg.RepoError:
             if cmd not in commands.optionalrepo.split():
                 if not path: