hgext/mq.py
branchstable
changeset 10588 b0b19d61d79a
parent 10558 6505773080e4
child 10589 92b8c79b34c2
equal deleted inserted replaced
10587:a48d256cc7d9 10588:b0b19d61d79a
   811         return m, a, r, d
   811         return m, a, r, d
   812 
   812 
   813     _reserved = ('series', 'status', 'guards')
   813     _reserved = ('series', 'status', 'guards')
   814     def check_reserved_name(self, name):
   814     def check_reserved_name(self, name):
   815         if (name in self._reserved or name.startswith('.hg')
   815         if (name in self._reserved or name.startswith('.hg')
   816             or name.startswith('.mq')):
   816             or name.startswith('.mq') or '#' in name
       
   817             or (os.name == 'nt' and ':' in name)):
   817             raise util.Abort(_('"%s" cannot be used as the name of a patch')
   818             raise util.Abort(_('"%s" cannot be used as the name of a patch')
   818                              % name)
   819                              % name)
   819 
   820 
   820     def new(self, repo, patchfn, *pats, **opts):
   821     def new(self, repo, patchfn, *pats, **opts):
   821         """options:
   822         """options: