We are about to drop the requirement dedicated to sidedata (since revlogv2 will
support them unconditionally and previous version will not.).
To prepare this more we adapt the test code to not use that requirements.
( )
hg-reviewers |
We are about to drop the requirement dedicated to sidedata (since revlogv2 will
support them unconditionally and previous version will not.).
To prepare this more we adapt the test code to not use that requirements.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | tests/testlib/ext-sidedata.py (2 lines) |
return text, sd | return text, sd | ||||
def wrapget_sidedata_helpers(orig, srcrepo, dstrepo): | def wrapget_sidedata_helpers(orig, srcrepo, dstrepo): | ||||
repo, computers, removers = orig(srcrepo, dstrepo) | repo, computers, removers = orig(srcrepo, dstrepo) | ||||
assert not computers and not removers # deal with composition later | assert not computers and not removers # deal with composition later | ||||
addedreqs = dstrepo.requirements - srcrepo.requirements | addedreqs = dstrepo.requirements - srcrepo.requirements | ||||
if requirements.SIDEDATA_REQUIREMENT in addedreqs: | if requirements.REVLOGV2_REQUIREMENT in addedreqs: | ||||
def computer(repo, revlog, rev, old_sidedata): | def computer(repo, revlog, rev, old_sidedata): | ||||
assert not old_sidedata # not supported yet | assert not old_sidedata # not supported yet | ||||
update = {} | update = {} | ||||
revlog.sidedatanocheck = True | revlog.sidedatanocheck = True | ||||
try: | try: | ||||
text = revlog.revision(rev) | text = revlog.revision(rev) | ||||
finally: | finally: |