equal
deleted
inserted
replaced
112 else: |
112 else: |
113 patch = l[:h] |
113 patch = l[:h] |
114 comment = l[h:] |
114 comment = l[h:] |
115 patch = patch.strip() |
115 patch = patch.strip() |
116 if patch: |
116 if patch: |
|
117 if patch in self.series: |
|
118 raise util.Abort(_('%s appears more than once in %s') % |
|
119 (patch, self.join(self.series_path))) |
117 self.series.append(patch) |
120 self.series.append(patch) |
118 self.series_guards.append(self.guard_re.findall(comment)) |
121 self.series_guards.append(self.guard_re.findall(comment)) |
119 |
122 |
120 def check_guard(self, guard): |
123 def check_guard(self, guard): |
121 bad_chars = '# \t\r\n\f' |
124 bad_chars = '# \t\r\n\f' |