comparison hgext/mq.py @ 3604:437489d8dfbf

mq: handle qpush -a with empty series
author Brendan Cully <brendan@kublai.com>
date Tue, 31 Oct 2006 17:24:42 -0800
parents 3b4e00cba57a
children 05d877dfd33d
comparison
equal deleted inserted replaced
3603:ef9c515836ae 3604:437489d8dfbf
1729 """push the next patch onto the stack""" 1729 """push the next patch onto the stack"""
1730 q = repo.mq 1730 q = repo.mq
1731 mergeq = None 1731 mergeq = None
1732 1732
1733 if opts['all']: 1733 if opts['all']:
1734 if not q.series:
1735 raise util.Abort(_('no patches in series'))
1734 patch = q.series[-1] 1736 patch = q.series[-1]
1735 if opts['merge']: 1737 if opts['merge']:
1736 if opts['name']: 1738 if opts['name']:
1737 newpath = opts['name'] 1739 newpath = opts['name']
1738 else: 1740 else: