[PATCH] bundlerepo: fix small bug in exception raising

Sune Foldager cryo at cyanite.org
Tue Oct 27 04:49:24 CDT 2009


# HG changeset patch
# User Sune Foldager <cryo at cyanite.org>
# Date 1256636021 -3600
# Node ID 1ad02c04356cd85a84d8f401ecd37fde75ddd75c
# Parent  20b91f91f9cadfc2de79e7a2ecc07302b05ebca1
bundlerepo: fix small bug in exception raising

diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -50,7 +50,7 @@
                 continue
             for p in (p1, p2):
                 if not p in self.nodemap:
-                    raise error.LookupError(p1, self.indexfile,
+                    raise error.LookupError(p, self.indexfile,
                                             _("unknown parent"))
             if linkmapper is None:
                 link = n


More information about the Mercurial-devel mailing list