Mercurial > hgsubversion
diff tests/test_tags.py @ 1160:f06bb42bd2b2
svnmeta: turn tags into lazy property
This has no effect currently but will be used in a future patch to make it
possible to create a SVNMeta object without having to load the tags file (for
use in rebuilding metadata).
Tests have been updated.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sat, 22 Feb 2014 18:26:48 -0600 |
parents | 6e1dbf6cbc92 |
children | a36e87ae2380 |
line wrap: on
line diff
--- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -175,6 +175,8 @@ rename a tag 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')