From e073cf982ffc485700d0bad10d105792f3912d42 Mon Sep 17 00:00:00 2001 From: "Alexis S. L. Carvalho" Date: Thu, 14 Feb 2008 18:08:16 -0200 Subject: [PATCH] Set bundle.mainreporoot only after checking that it's a local repo Fixes issue977. --- mercurial/dispatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py index e412c900c7..4e4dc86187 100644 --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -340,9 +340,9 @@ def _dispatch(ui, args): 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: