Mercurial > hgsubversion
comparison tests/comprehensive/test_stupid_pull.py @ 892:3bfb7e985c47
svn verify: add a test for corrupt repositories.
This case contains a couple of unlikely (but not impossible) failure
cases that the code previously did not handle. The verifier is updated
to address these, and the output made a bit more consistent.
| author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
|---|---|
| date | Wed, 14 Dec 2011 00:07:58 +0100 |
| parents | 50c13e01c7e3 |
| children | 7d9cd708f412 |
comparison
equal
deleted
inserted
replaced
| 889:7a98fbadcae9 | 892:3bfb7e985c47 |
|---|---|
| 43 return m | 43 return m |
| 44 | 44 |
| 45 attrs = {'_do_case': _do_case, | 45 attrs = {'_do_case': _do_case, |
| 46 } | 46 } |
| 47 for case in (f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')): | 47 for case in (f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')): |
| 48 if case == 'corrupt.svndump': | |
| 49 continue | |
| 48 name = 'test_' + case[:-len('.svndump')] | 50 name = 'test_' + case[:-len('.svndump')] |
| 49 # Automatic layout branchtag collision exposes a minor defect | 51 # Automatic layout branchtag collision exposes a minor defect |
| 50 # here, but since it isn't a regression we suppress the test case. | 52 # here, but since it isn't a regression we suppress the test case. |
| 51 if case != 'branchtagcollision.svndump': | 53 if case != 'branchtagcollision.svndump': |
| 52 attrs[name] = buildmethod(case, name, 'auto') | 54 attrs[name] = buildmethod(case, name, 'auto') |
