hgext/remotefilelog/repack.py
changeset 41806 118c1ec4f31b
parent 41365 876494fd967d
child 42057 566daffc607d
equal deleted inserted replaced
41805:090a41251f09 41806:118c1ec4f31b
   336     if not fullhistory:
   336     if not fullhistory:
   337         fullhistory = history
   337         fullhistory = history
   338     packer = repacker(repo, data, history, fullhistory, category,
   338     packer = repacker(repo, data, history, fullhistory, category,
   339                       gc=garbagecollect, isold=isold, options=options)
   339                       gc=garbagecollect, isold=isold, options=options)
   340 
   340 
   341     with datapack.mutabledatapack(repo.ui, packpath, version=2) as dpack:
   341     with datapack.mutabledatapack(repo.ui, packpath) as dpack:
   342         with historypack.mutablehistorypack(repo.ui, packpath) as hpack:
   342         with historypack.mutablehistorypack(repo.ui, packpath) as hpack:
   343             try:
   343             try:
   344                 packer.run(dpack, hpack)
   344                 packer.run(dpack, hpack)
   345             except error.LockHeld:
   345             except error.LockHeld:
   346                 raise RepackAlreadyRunning(_("skipping repack - another repack "
   346                 raise RepackAlreadyRunning(_("skipping repack - another repack "