equal
deleted
inserted
replaced
266 Take care of filtering duplicate. |
266 Take care of filtering duplicate. |
267 Return the number of new marker.""" |
267 Return the number of new marker.""" |
268 if not _enabled: |
268 if not _enabled: |
269 raise util.Abort('obsolete feature is not enabled on this repo') |
269 raise util.Abort('obsolete feature is not enabled on this repo') |
270 known = set(self._all) |
270 known = set(self._all) |
271 new = [m for m in markers if m not in known] |
271 new = [] |
|
272 for m in markers: |
|
273 if m not in known: |
|
274 known.add(m) |
|
275 new.append(m) |
272 if new: |
276 if new: |
273 f = self.sopener('obsstore', 'ab') |
277 f = self.sopener('obsstore', 'ab') |
274 try: |
278 try: |
275 # Whether the file's current position is at the begin or at |
279 # Whether the file's current position is at the begin or at |
276 # the end after opening a file for appending is implementation |
280 # the end after opening a file for appending is implementation |