X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fgit.py;h=5cb282922c392169dffc6bb9083ae441be606256;hb=38208840b8f669598e0077ac291080da0d075d94;hp=a86f80e5b151571cb432126abaf8f23a47bef04d;hpb=89ac418d84e29ba482bbd21ebc1172c2d1ff5507;p=bup.git diff --git a/lib/bup/git.py b/lib/bup/git.py index a86f80e..5cb2829 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -4,7 +4,7 @@ interact with the Git data structures. """ import os, sys, zlib, time, subprocess, struct, stat, re, tempfile, glob from bup.helpers import * -from bup import _helpers, path, midx, bloom +from bup import _helpers, path, midx, bloom, xstat max_pack_size = 1000*1000*1000 # larger packs will slow down pruning max_pack_objects = 200*1000 # cache memory usage is about 83 bytes per object @@ -413,7 +413,7 @@ class PackIdxList: else: midxl.append(mx) midxl.sort(key=lambda ix: - (-len(ix), -os.stat(ix.name).st_mtime)) + (-len(ix), -xstat.stat(ix.name).st_mtime)) for ix in midxl: any_needed = False for sub in ix.idxnames: