mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
test-flagprocessor: use changegroup3 in bundle2
This will force "hg bundle" to use changegroup3 in the test. It is important since only changegroup3 preserves revlog flags.
This commit is contained in:
parent
aa5d108c15
commit
a208984f78
@ -7,6 +7,7 @@ import zlib
|
||||
|
||||
from mercurial import (
|
||||
changegroup,
|
||||
exchange,
|
||||
extensions,
|
||||
filelog,
|
||||
revlog,
|
||||
@ -103,6 +104,10 @@ def extsetup(ui):
|
||||
revlog.REVIDX_KNOWN_FLAGS |= util.bitsfrom(flags)
|
||||
revlog.REVIDX_FLAGS_ORDER.extend(flags)
|
||||
|
||||
# Teach exchange to use changegroup 3
|
||||
for k in exchange._bundlespeccgversions.keys():
|
||||
exchange._bundlespeccgversions[k] = '03'
|
||||
|
||||
# Add wrappers for addrevision, responsible to set flags depending on the
|
||||
# revision data contents.
|
||||
wrapfunction(filelog.filelog, 'addrevision', noopaddrevision)
|
||||
|
Loading…
Reference in New Issue
Block a user