equal
deleted
inserted
replaced
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: |