changeset 6105:6480af8fd53c

Set bundle.mainreporoot only after checking that it's a local repo Fixes issue977.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 14 Feb 2008 18:08:16 -0200
parents 352ac9875807
children cb2f7652ad1b
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Thu Feb 14 20:54:52 2008 +0100
+++ b/mercurial/dispatch.py	Thu Feb 14 18:08:16 2008 -0200
@@ -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: