Mercurial > hg
changeset 31832:77f746e5383a
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.
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 06 Apr 2017 17:23:20 -0700 |
parents | 1da9b2a4cbb8 |
children | 723c1ab2f77e |
files | tests/flagprocessorext.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/flagprocessorext.py Thu Apr 06 17:01:58 2017 -0700 +++ b/tests/flagprocessorext.py Thu Apr 06 17:23:20 2017 -0700 @@ -7,6 +7,7 @@ from mercurial import ( changegroup, + exchange, extensions, filelog, revlog, @@ -103,6 +104,10 @@ 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)