Mercurial > hgsubversion
comparison tests/comprehensive/test_updatemeta.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 |
---|---|
27 layout = 'auto' | 27 layout = 'auto' |
28 if single: | 28 if single: |
29 layout = 'single' | 29 layout = 'single' |
30 repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=stupid, | 30 repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=stupid, |
31 layout=layout) | 31 layout=layout) |
32 assert len(self.repo) > 0 | 32 assert test_util.repolen(self.repo) > 0 |
33 wc2_path = self.wc_path + '_clone' | 33 wc2_path = self.wc_path + '_clone' |
34 u = ui.ui() | 34 u = ui.ui() |
35 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False) | 35 src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False) |
36 src = test_util.getlocalpeer(src) | 36 src = test_util.getlocalpeer(src) |
37 dest = test_util.getlocalpeer(dest) | 37 dest = test_util.getlocalpeer(dest) |