# HG changeset patch # User Brendan Cully # Date 1162344282 28800 # Node ID 437489d8dfbf0d05fc1b68650d100b69a8ad2d89 # Parent ef9c515836aee1ea42a488fb71a22bdafbe35217 mq: handle qpush -a with empty series diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1731,6 +1731,8 @@ def push(ui, repo, patch=None, **opts): 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']: