hgext/largefiles/lfutil.py
changeset 33373 fb320398a21c
parent 32309 16a5cb4eedb7
child 33438 8056481caa81
equal deleted inserted replaced
33372:4481f1fd27b1 33373:fb320398a21c
    24     httpconnection,
    24     httpconnection,
    25     match as matchmod,
    25     match as matchmod,
    26     node,
    26     node,
    27     pycompat,
    27     pycompat,
    28     scmutil,
    28     scmutil,
       
    29     sparse,
    29     util,
    30     util,
    30     vfs as vfsmod,
    31     vfs as vfsmod,
    31 )
    32 )
    32 
    33 
    33 shortname = '.hglf'
    34 shortname = '.hglf'
   145     '''
   146     '''
   146     vfs = repo.vfs
   147     vfs = repo.vfs
   147     lfstoredir = longname
   148     lfstoredir = longname
   148     opener = vfsmod.vfs(vfs.join(lfstoredir))
   149     opener = vfsmod.vfs(vfs.join(lfstoredir))
   149     lfdirstate = largefilesdirstate(opener, ui, repo.root,
   150     lfdirstate = largefilesdirstate(opener, ui, repo.root,
   150                                      repo.dirstate._validate)
   151                                     repo.dirstate._validate,
       
   152                                     lambda: sparse.matcher(repo))
   151 
   153 
   152     # If the largefiles dirstate does not exist, populate and create
   154     # If the largefiles dirstate does not exist, populate and create
   153     # it. This ensures that we create it on the first meaningful
   155     # it. This ensures that we create it on the first meaningful
   154     # largefiles operation in a new clone.
   156     # largefiles operation in a new clone.
   155     if create and not vfs.exists(vfs.join(lfstoredir, 'dirstate')):
   157     if create and not vfs.exists(vfs.join(lfstoredir, 'dirstate')):