# HG changeset patch # User Brendan Cully # Date 1151696122 -7200 # Node ID c49dc6f38a197d0da8a5a4d9666d30c7e6eb3a3a # Parent c1974f65d781f35b0a6c7ad9a7a87d1a6d66e2b4 hgk: Don't choke on empty changelogs diff -r c1974f65d781 -r c49dc6f38a19 hgext/hgk.py --- a/hgext/hgk.py Fri Jun 30 18:57:04 2006 +0200 +++ b/hgext/hgk.py Fri Jun 30 21:35:22 2006 +0200 @@ -131,7 +131,7 @@ date_ar = changes[2] date = int(float(date_ar[0])) lines = changes[4].splitlines() - if lines[-1].startswith('committer:'): + if lines and lines[-1].startswith('committer:'): committer = lines[-1].split(': ')[1].rstrip() else: committer = changes[1]