Mercurial > hgsubversion
diff tests/test_tags.py @ 1439:ab15749252b0
TagMap: stop automagically running 'hg svn rebuildmeta'
This resolves a layering violation that was causing us to hang on to a
repo reference via meta. We don't change maps often enough to justify this.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 05 Jun 2016 23:01:46 -0400 |
parents | a36e87ae2380 |
children | 9a6bb3657861 |
line wrap: on
line diff
--- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -4,6 +4,7 @@ import os, sys, cStringIO, difflib import unittest from mercurial import commands +from mercurial import error from mercurial import hg from mercurial import node from mercurial import ui @@ -164,14 +165,12 @@ rename a tag 'magic2': '\xa3\xa2D\x86aM\xc0v\xb9\xb0\x18\x14\xad\xacwBUi}\xe2', }) - def test_old_tag_map_rebuilds(self): + def test_old_tag_map_aborts(self): repo = self._load_fixture_and_fetch('tag_name_same_as_branch.svndump') tm = os.path.join(repo.path, 'svn', 'tagmap') open(tm, 'w').write('1\n') # force tags to load since it is lazily loaded when needed - repo.svnmeta().tags - commands.pull(repo.ui, repo) - self.assertEqual(open(tm).read().splitlines()[0], '2') + self.assertRaises(error.Abort, lambda: repo.svnmeta().tags) def _debug_print_tags(self, repo, ctx, fp): def formatnode(ctx):