changeset 302:827d4702a3b3

Adapt rebuildmeta and its test to the disappearance of '.hg/svn/last_rev'. This should have been part of changeset a55a16f3eb6d. Oops.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 27 Mar 2009 03:28:22 +0100
parents 79440ed81011
children f423a8780832
files rebuildmeta.py tests/test_rebuildmeta.py
diffstat 2 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- 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())