comparison tests/test_rebuildmeta.py @ 573:00393e9abff8

svncommands: make repo optional (useful for things like listauthors)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 23 Feb 2010 17:16:51 +0100
parents 1fd3cfa47c5e
children 25714b4954b7
comparison
equal deleted inserted replaced
572:7f0e8fd6ee22 573:00393e9abff8
20 wc2_path = self.wc_path + '_clone' 20 wc2_path = self.wc_path + '_clone'
21 u = ui.ui() 21 u = ui.ui()
22 src, dest = hg.clone(u, self.wc_path, wc2_path, update=False) 22 src, dest = hg.clone(u, self.wc_path, wc2_path, update=False)
23 svncommands.rebuildmeta(u, 23 svncommands.rebuildmeta(u,
24 dest, 24 dest,
25 os.path.dirname(dest.path),
26 args=[test_util.fileurl(self.repo_path + 25 args=[test_util.fileurl(self.repo_path +
27 subdir), ]) 26 subdir), ])
28 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), 27 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')),
29 'no .hg/svn directory in the source!') 28 'no .hg/svn directory in the source!')
30 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')), 29 self.assertTrue(os.path.isdir(os.path.join(src.path, 'svn')),