Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.py @ 6607:75b506f0e571
mq: make qselect fail properly on an empty guard
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 18 May 2008 17:01:24 +0200 |
parents | 088ba40585b9 |
children | ff5ef3c0fe10 de83188043b2 |
line wrap: on
line diff
--- a/hgext/mq.py Sat May 17 09:11:14 2008 +0200 +++ b/hgext/mq.py Sun May 18 17:01:24 2008 +0200 @@ -126,6 +126,8 @@ self.series_guards.append(self.guard_re.findall(comment)) def check_guard(self, guard): + if not guard: + return _('guard cannot be an empty string') bad_chars = '# \t\r\n\f' first = guard[0] for c in '-+':