hgext/mq.py
changeset 6607 75b506f0e571
parent 6606 088ba40585b9
child 6609 ff5ef3c0fe10
child 6617 de83188043b2
--- 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 '-+':