Mercurial > hgsubversion
comparison tests/test_tags.py @ 399:94f7e8c53c36
tags: end branch while tagging instead of creating extra changeset
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 10 Jun 2009 09:35:45 +0200 |
parents | a8811c84e3ee |
children | f5222d021665 |
comparison
equal
deleted
inserted
replaced
398:f13dd964d10c | 399:94f7e8c53c36 |
---|---|
54 def test_tag_by_renaming_branch(self, stupid=False): | 54 def test_tag_by_renaming_branch(self, stupid=False): |
55 repo = self._load_fixture_and_fetch('tag_by_rename_branch.svndump', | 55 repo = self._load_fixture_and_fetch('tag_by_rename_branch.svndump', |
56 stupid=stupid) | 56 stupid=stupid) |
57 branches = set(repo[h] for h in repo.heads(closed=False)) | 57 branches = set(repo[h] for h in repo.heads(closed=False)) |
58 self.assert_('dummy' not in branches) | 58 self.assert_('dummy' not in branches) |
59 self.assertEqual(repo['dummy'], repo['tip'].parents()[0].parents()[0]) | 59 self.assertEqual(repo['dummy'], repo['tip'].parents()[0]) |
60 extra = repo['tip'].extra().copy() | 60 extra = repo['tip'].extra().copy() |
61 extra.pop('convert_revision', None) | 61 extra.pop('convert_revision', None) |
62 self.assertEqual(extra, {'branch': 'dummy', 'close': '1'}) | 62 self.assertEqual(extra, {'branch': 'dummy', 'close': '1'}) |
63 | 63 |
64 def test_tag_by_renaming_branch_stupid(self): | 64 def test_tag_by_renaming_branch_stupid(self): |