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')): |
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: |