From d367ed8d40de7a390cbb3306ea1efe3a801fe753 Mon Sep 17 00:00:00 2001 From: maxb Date: Fri, 9 Oct 2009 02:42:50 +0000 Subject: [PATCH] Raise slightly more useful KeyErrors. Patch by: Greg Ward * cvs2svn_lib/repository_mirror.py (LODHistory.get_id, LODHistory.update): Use passed revnum as KeyError argument. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@4938 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/repository_mirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cvs2svn_lib/repository_mirror.py b/cvs2svn_lib/repository_mirror.py index 72e2ba11..8311c4e6 100644 --- a/cvs2svn_lib/repository_mirror.py +++ b/cvs2svn_lib/repository_mirror.py @@ -531,7 +531,7 @@ class LODHistory(object): id = self.ids[index] if id is None: - raise KeyError() + raise KeyError(revnum) return id @@ -563,7 +563,7 @@ class LODHistory(object): ceased to exist in REVNUM.""" if revnum < self.revnums[-1]: - raise KeyError() + raise KeyError(revnum) elif revnum == self.revnums[-1]: # This is an attempt to overwrite an entry that was already # updated during this revision. Don't allow the replacement -- 2.11.4.GIT