# HG changeset patch # User Brendan Cully # Date 1162344282 28800 # Node ID 437489d8dfbf0d05fc1b68650d100b69a8ad2d89 # Parent ef9c515836aee1ea42a488fb71a22bdafbe35217 mq: handle qpush -a with empty series diff -r ef9c515836ae -r 437489d8dfbf hgext/mq.py --- a/hgext/mq.py Tue Oct 31 16:35:44 2006 -0800 +++ b/hgext/mq.py Tue Oct 31 17:24:42 2006 -0800 @@ -1731,6 +1731,8 @@ mergeq = None if opts['all']: + if not q.series: + raise util.Abort(_('no patches in series')) patch = q.series[-1] if opts['merge']: if opts['name']: