# HG changeset patch # User Emmanuel Rosa <goaway1...@gmail.com> # Date 1252019600 14400 # Node ID 62a0608e2cea11e90aca2a305a7332d732aaa0f7 # Parent da5325e0e8eebe451009acba3cc227000285b271 thgmq: fix IndexError when patch message is missing
diff -r da5325e0e8ee -r 62a0608e2cea hggtk/thgmq.py --- a/hggtk/thgmq.py Thu Sep 03 16:02:36 2009 -0500 +++ b/hggtk/thgmq.py Thu Sep 03 19:13:20 2009 -0400 @@ -227,7 +227,10 @@ applied = set([p.name for p in q.applied]) for index, patchname in enumerate(q.series): stat = patchname in applied and 'A' or 'U' - msg = mq.patchheader(q.join(patchname)).message[0] + try: + msg = mq.patchheader(q.join(patchname)).message[0] + except IndexError: + msg = None iter = model.append((index, stat, patchname, msg)) if stat == 'A': top = iter ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop