equal
deleted
inserted
replaced
1102 if name.startswith(prefix): |
1102 if name.startswith(prefix): |
1103 raise util.Abort(_('patch name cannot begin with "%s"') |
1103 raise util.Abort(_('patch name cannot begin with "%s"') |
1104 % prefix) |
1104 % prefix) |
1105 for c in ('#', ':'): |
1105 for c in ('#', ':'): |
1106 if c in name: |
1106 if c in name: |
1107 raise util.Abort(_('"%s" cannot be used in the name of a patch') |
1107 raise util.Abort(_('%r cannot be used in the name of a patch') |
1108 % c) |
1108 % c) |
1109 |
1109 |
1110 def checkpatchname(self, name, force=False): |
1110 def checkpatchname(self, name, force=False): |
1111 self.checkreservedname(name) |
1111 self.checkreservedname(name) |
1112 if not force and os.path.exists(self.join(name)): |
1112 if not force and os.path.exists(self.join(name)): |