# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1238120902 -3600 # Node ID 827d4702a3b35a7cf64dee7b5bd4ff76b90a3479 # Parent 79440ed81011c44239c04afed86978e21c4e8f61 Adapt rebuildmeta and its test to the disappearance of '.hg/svn/last_rev'. This should have been part of changeset a55a16f3eb6d. Oops. diff --git a/rebuildmeta.py b/rebuildmeta.py --- a/rebuildmeta.py +++ b/rebuildmeta.py @@ -79,9 +79,6 @@ def rebuildmeta(ui, repo, hg_repo_path, if c.branch() == 'closed-branches': if branch in branchinfo: del branchinfo[branch] - lastrevfile = open(os.path.join(svnmetadir, 'last_rev'), 'w') - lastrevfile.write(str(last_rev)) - lastrevfile.close() branchinfofile = open(os.path.join(svnmetadir, 'branch_info'), 'w') pickle.dump(branchinfo, branchinfofile) branchinfofile.close() diff --git a/tests/test_rebuildmeta.py b/tests/test_rebuildmeta.py --- a/tests/test_rebuildmeta.py +++ b/tests/test_rebuildmeta.py @@ -22,8 +22,6 @@ def _do_case(self, name, stupid): args=[test_util.fileurl(self.repo_path + subdir), ]) dest = hg.repository(u, os.path.dirname(dest.path)) - self.assert_(open(os.path.join(src.path, 'svn', 'last_rev')).read() >= - open(os.path.join(dest.path, 'svn', 'last_rev')).read()) for tf in ('rev_map', 'uuid', 'url'): self.assertEqual(open(os.path.join(src.path, 'svn', tf)).read(), open(os.path.join(dest.path, 'svn', tf)).read())