tests/artifacts/scripts/generate-churning-bundle.py
changeset 52436 599c696bb514
parent 51274 d7155949535e
child 52437 e26b738430a1
equal deleted inserted replaced
52435:7e954b08d129 52436:599c696bb514
   115         for idx in range(1, NB_CHANGESET + 1):
   115         for idx in range(1, NB_CHANGESET + 1):
   116             if sys.stdout.isatty():
   116             if sys.stdout.isatty():
   117                 print("generating commit #%d/%d" % (idx, NB_CHANGESET))
   117                 print("generating commit #%d/%d" % (idx, NB_CHANGESET))
   118             if (idx % PERIOD_BRANCHING) == 0:
   118             if (idx % PERIOD_BRANCHING) == 0:
   119                 move_back = MOVE_BACK_MIN + (idx % MOVE_BACK_RANGE)
   119                 move_back = MOVE_BACK_MIN + (idx % MOVE_BACK_RANGE)
   120                 hg('update', ".~%d" % move_back)
   120                 hg('update', "max(0+.~%d)" % move_back)
   121             if (idx % PERIOD_MERGING) == 0:
   121             if (idx % PERIOD_MERGING) == 0:
   122                 hg('merge', 'min(head())')
   122                 hg('merge', 'min(head())')
   123             updatefile(FILENAME, idx)
   123             updatefile(FILENAME, idx)
   124             hg('commit', '--message', 'commit #%d' % idx)
   124             hg('commit', '--message', 'commit #%d' % idx)
   125         hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1')
   125         hg('bundle', '--all', target, '--config', 'devel.bundle.delta=p1')