comparison mercurial/commands.py @ 32516:37d70ba1d9d1

bundle: add an experimental knob to include obsmarkers in bundle The "hg bundle" command is a good place to test if the inclusion of obsmarkers within a bundle is working well (part exists, content is correct etc). So we add a way to have them included. Ideally, this would be controlled by a change around bundlespec (bundlespec "v3" + arguments). However, my main goal is to have obsmarkers included in bundle created by the 'hg strip' command, not the 'hg bundle' so for now I'm avoiding the detour through bundlespec rework territory. Better debug output for obsmarkers in 'debugbundle' will be added in later changesets. The 'test-obsolete-bundle-strip.t' test will also get updated in a later changeset to keep the current changeset smaller.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 28 May 2017 11:50:43 -0700
parents 1df80eff24cf
children f4cd4c49e302
comparison
equal deleted inserted replaced
32515:e70d6dbde713 32516:37d70ba1d9d1
1324 if complevel is not None: 1324 if complevel is not None:
1325 compopts['level'] = complevel 1325 compopts['level'] = complevel
1326 1326
1327 1327
1328 contentopts = {'cg.version': cgversion} 1328 contentopts = {'cg.version': cgversion}
1329 if repo.ui.configbool('experimental', 'evolution.bundle-obsmarker', False):
1330 contentopts['obsolescence'] = True
1329 bundle2.writenewbundle(ui, repo, 'bundle', fname, bversion, outgoing, 1331 bundle2.writenewbundle(ui, repo, 'bundle', fname, bversion, outgoing,
1330 contentopts, compression=bcompression, 1332 contentopts, compression=bcompression,
1331 compopts=compopts) 1333 compopts=compopts)
1332 1334
1333 @command('cat', 1335 @command('cat',