Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 246:074f27c68818
Move rebuildmeta into svncommands.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 08 Apr 2009 18:49:44 +0200 |
parents | 2117cb0118fe |
children | 75f082b5897e |
comparison
equal
deleted
inserted
replaced
245:f8e9b74df403 | 246:074f27c68818 |
---|---|
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)) |