Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 304:ce676eff002b
First merge, totally untested.
| author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
|---|---|
| date | Fri, 01 May 2009 10:28:59 +0200 |
| parents | 074f27c68818 |
| children | 75f082b5897e |
comparison
equal
deleted
inserted
replaced
| 303:f423a8780832 | 304:ce676eff002b |
|---|---|
| 3 import unittest | 3 import unittest |
| 4 | 4 |
| 5 from mercurial import hg | 5 from mercurial import hg |
| 6 from mercurial import ui | 6 from mercurial import ui |
| 7 | 7 |
| 8 import svncommands | |
| 9 import hg_delta_editor | |
| 10 | |
| 8 import test_util | 11 import test_util |
| 9 import rebuildmeta | |
| 10 import hg_delta_editor | |
| 11 | 12 |
| 12 def _do_case(self, name, stupid): | 13 def _do_case(self, name, stupid): |
| 13 subdir = test_util.subdir.get(name, '') | 14 subdir = test_util.subdir.get(name, '') |
| 14 self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid) | 15 self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid) |
| 15 assert len(self.repo) > 0 | 16 assert len(self.repo) > 0 |
| 16 wc2_path = self.wc_path + '_clone' | 17 wc2_path = self.wc_path + '_clone' |
| 17 u = ui.ui() | 18 u = ui.ui() |
| 18 src, dest = hg.clone(u, self.wc_path, wc2_path, update=False) | 19 src, dest = hg.clone(u, self.wc_path, wc2_path, update=False) |
| 19 rebuildmeta.rebuildmeta(u, | 20 svncommands.rebuildmeta(u, |
| 20 dest, | 21 dest, |
| 21 os.path.dirname(dest.path), | 22 os.path.dirname(dest.path), |
| 22 args=[test_util.fileurl(self.repo_path + | 23 args=[test_util.fileurl(self.repo_path + |
| 23 subdir), ]) | 24 subdir), ]) |
| 24 dest = hg.repository(u, os.path.dirname(dest.path)) | 25 dest = hg.repository(u, os.path.dirname(dest.path)) |
