Skip to content
Snippets Groups Projects
Commit 77f746e5 authored by Jun Wu's avatar Jun Wu
Browse files

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.
parent 1da9b2a4
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
from mercurial import ( from mercurial import (
changegroup, changegroup,
exchange,
extensions, extensions,
filelog, filelog,
revlog, revlog,
...@@ -103,6 +104,10 @@ ...@@ -103,6 +104,10 @@
revlog.REVIDX_KNOWN_FLAGS |= util.bitsfrom(flags) revlog.REVIDX_KNOWN_FLAGS |= util.bitsfrom(flags)
revlog.REVIDX_FLAGS_ORDER.extend(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 # Add wrappers for addrevision, responsible to set flags depending on the
# revision data contents. # revision data contents.
wrapfunction(filelog.filelog, 'addrevision', noopaddrevision) wrapfunction(filelog.filelog, 'addrevision', noopaddrevision)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment