Mercurial > hgsubversion
comparison hg_delta_editor.py @ 23:1f8854804795
Add tests for tags and fix a bug in the tag-finding code that was found by the tests.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 08 Oct 2008 20:37:01 -0500 |
parents | c89f53103502 |
children | a9c15cae50e5 |
comparison
equal
deleted
inserted
replaced
22:95d0109e495e | 23:1f8854804795 |
---|---|
291 tags_to_delete.add(t_name) | 291 tags_to_delete.add(t_name) |
292 for t in tags_to_delete: | 292 for t in tags_to_delete: |
293 del self.tags[t] | 293 del self.tags[t] |
294 self.tags.update(added_tags) | 294 self.tags.update(added_tags) |
295 self.branches.update(added_branches) | 295 self.branches.update(added_branches) |
296 self._save_metadata() | |
296 | 297 |
297 def commit_current_delta(self): | 298 def commit_current_delta(self): |
298 if hasattr(self, '_exception_info'): | 299 if hasattr(self, '_exception_info'): |
299 traceback.print_exception(*self._exception_info) | 300 traceback.print_exception(*self._exception_info) |
300 raise ReplayException() | 301 raise ReplayException() |