diff mercurial/dispatch.py @ 6142:50a277e6ceae

merge backout
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 18 Feb 2008 19:21:33 +0100
parents 90e5c82a3859 6480af8fd53c
children aafdea37f796
line wrap: on
line diff
--- 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: