hgext/remotefilelog/repack.py
changeset 40556 10c10da14c5d
parent 40547 3fbfbc8c9f82
child 40576 1419f780207c
equal deleted inserted replaced
40555:b6b2a3d22344 40556:10c10da14c5d
   343     if not fullhistory:
   343     if not fullhistory:
   344         fullhistory = history
   344         fullhistory = history
   345     packer = repacker(repo, data, history, fullhistory, category,
   345     packer = repacker(repo, data, history, fullhistory, category,
   346                       gc=garbagecollect, isold=isold, options=options)
   346                       gc=garbagecollect, isold=isold, options=options)
   347 
   347 
   348     # internal config: remotefilelog.datapackversion
   348     with datapack.mutabledatapack(repo.ui, packpath, version=2) as dpack:
   349     dv = repo.ui.configint('remotefilelog', 'datapackversion', 0)
       
   350 
       
   351     with datapack.mutabledatapack(repo.ui, packpath, version=dv) as dpack:
       
   352         with historypack.mutablehistorypack(repo.ui, packpath) as hpack:
   349         with historypack.mutablehistorypack(repo.ui, packpath) as hpack:
   353             try:
   350             try:
   354                 packer.run(dpack, hpack)
   351                 packer.run(dpack, hpack)
   355             except error.LockHeld:
   352             except error.LockHeld:
   356                 raise RepackAlreadyRunning(_("skipping repack - another repack "
   353                 raise RepackAlreadyRunning(_("skipping repack - another repack "