# HG changeset patch # User Augie Fackler # Date 1238279928 18000 # Node ID 794f473b9b4991c5b5a4dca256ad83b1aa94a2d0 # Parent a360ddc97719bd4cf55f69fa84938e50116a36a4 info: stop failing if the rev is not a child of an svn rev. diff --git a/utility_commands.py b/utility_commands.py --- a/utility_commands.py +++ b/utility_commands.py @@ -72,7 +72,11 @@ def run_svn_info(ui, repo, hg_repo_path, svn_commit_hashes = dict(zip(hge.revmap.itervalues(), hge.revmap.iterkeys())) parent = find_wc_parent_rev(ui, repo, hge, svn_commit_hashes) - r, br = svn_commit_hashes[parent.node()] + pn = parent.node() + if pn not in svn_commit_hashes: + ui.status('Not a child of an svn revision.\n') + return 0 + r, br = svn_commit_hashes[pn] subdir = parent.extra()['convert_revision'][40:].split('@')[0] if br == None: branchpath = '/trunk'