comparison tests/comprehensive/test_rebuildmeta.py @ 1048:903c9c9dfe6a

tests: count revisions explicitly The assumption that len(repo) corresponds to the count of actual, usable revision in the repository fails in presence of hidden revisions. Instead, we use a dedicated method in test_util, and change all tests to use this for obtaining repository length -- just to be safe...
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 09 Aug 2013 11:22:50 -0400
parents d741f536f23a
children cd256960b622
comparison
equal deleted inserted replaced
1047:3092b3c109a8 1048:903c9c9dfe6a
35 layout = 'auto' 35 layout = 'auto'
36 if single: 36 if single:
37 layout = 'single' 37 layout = 'single'
38 repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=stupid, 38 repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=stupid,
39 layout=layout) 39 layout=layout)
40 assert len(self.repo) > 0 40 assert test_util.repolen(self.repo) > 0
41 wc2_path = self.wc_path + '_clone' 41 wc2_path = self.wc_path + '_clone'
42 u = ui.ui() 42 u = ui.ui()
43 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False) 43 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False)
44 src = test_util.getlocalpeer(src) 44 src = test_util.getlocalpeer(src)
45 dest = test_util.getlocalpeer(dest) 45 dest = test_util.getlocalpeer(dest)