hgext/mq.py
branchstable
changeset 10589 92b8c79b34c2
parent 10588 b0b19d61d79a
child 10591 ff2704a8ded3
equal deleted inserted replaced
10588:b0b19d61d79a 10589:92b8c79b34c2
   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') or '#' in name
   816             or name.startswith('.mq') or '#' in name or ':' in name):
   817             or (os.name == 'nt' and ':' in name)):
       
   818             raise util.Abort(_('"%s" cannot be used as the name of a patch')
   817             raise util.Abort(_('"%s" cannot be used as the name of a patch')
   819                              % name)
   818                              % name)
   820 
   819 
   821     def new(self, repo, patchfn, *pats, **opts):
   820     def new(self, repo, patchfn, *pats, **opts):
   822         """options:
   821         """options: