From fcf23797f2eb3d526dc0eefe49f1e2025d73bcd9 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Tue, 31 Jan 2012 21:43:37 -0600 Subject: [PATCH] Update build_rev_map() to gracefully handle case where a target_rev has revprops but no svn2svn:* revprops --- svn2svn/run/svn2svn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svn2svn/run/svn2svn.py b/svn2svn/run/svn2svn.py index 1052835..817e207 100644 --- a/svn2svn/run/svn2svn.py +++ b/svn2svn/run/svn2svn.py @@ -283,7 +283,8 @@ def build_rev_map(target_url, source_info): for v in log_entry['revprops']: if v['name'].startswith('svn2svn:'): revprops[v['name']] = v['value'] - if revprops['svn2svn:source_uuid'] == source_info['repos_uuid'] and \ + if revprops and \ + revprops['svn2svn:source_uuid'] == source_info['repos_uuid'] and \ revprops['svn2svn:source_url'] == source_info['url']: source_rev = revprops['svn2svn:source_rev'] target_rev = log_entry['revision'] -- 2.45.2