--- 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']: