[PATCH 2 of 2] bundlerepo: fix inconsistency of parsed and internal name (issue #821)
Peter Arrenbrecht
peter.arrenbrecht at gmail.com
Sun Feb 10 08:03:33 UTC 2008
# HG changeset patch
# User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
# Date 1202630019 -3600
# Node ID cf602953de51ee7922be21d7239ff33a382166a2
# Parent 8f280799fff140c48d8d5a4f991f3e129dfab65b
bundlerepo: fix inconsistency of parsed and internal name (issue #821)
diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -154,8 +154,10 @@ class bundlerepository(localrepo.localre
def __init__(self, ui, path, bundlename):
localrepo.localrepository.__init__(self, ui, path)
- self._url = 'bundle:' + bundlename
- if path: self._url += '+' + path
+ if path:
+ self._url = 'bundle:' + path + '+' + bundlename
+ else:
+ self._url = 'bundle:' + bundlename
self.tempfile = None
self.bundlefile = open(bundlename, "rb")
diff --git a/tests/test-bundle.out b/tests/test-bundle.out
--- a/tests/test-bundle.out
+++ b/tests/test-bundle.out
@@ -129,7 +129,7 @@ rolling back last transaction
====== Log -R bundle:empty+full.hg
8 7 6 5 4 3 2 1 0
====== Pull full.hg into empty again (using -R; with hook)
-changegroup hook: HG_NODE=5649c9d34dd87d0ecb5fd39672128376e83b22e1 HG_SOURCE=pull HG_URL=bundle:full.hg+empty
+changegroup hook: HG_NODE=5649c9d34dd87d0ecb5fd39672128376e83b22e1 HG_SOURCE=pull HG_URL=bundle:empty+full.hg
pulling from full.hg
requesting all changes
adding changesets
More information about the Mercurial-devel
mailing list