hgext/largefiles/lfutil.py
changeset 31216 21fa3d3688f3
parent 30820 6a70cf94d1b5
child 31247 04b4286278ec
equal deleted inserted replaced
31215:15c998528c36 31216:21fa3d3688f3
   142     Return a dirstate object that tracks largefiles: i.e. its root is
   142     Return a dirstate object that tracks largefiles: i.e. its root is
   143     the repo root, but it is saved in .hg/largefiles/dirstate.
   143     the repo root, but it is saved in .hg/largefiles/dirstate.
   144     '''
   144     '''
   145     vfs = repo.vfs
   145     vfs = repo.vfs
   146     lfstoredir = longname
   146     lfstoredir = longname
   147     opener = scmutil.opener(vfs.join(lfstoredir))
   147     opener = scmutil.vfs(vfs.join(lfstoredir))
   148     lfdirstate = largefilesdirstate(opener, ui, repo.root,
   148     lfdirstate = largefilesdirstate(opener, ui, repo.root,
   149                                      repo.dirstate._validate)
   149                                      repo.dirstate._validate)
   150 
   150 
   151     # If the largefiles dirstate does not exist, populate and create
   151     # If the largefiles dirstate does not exist, populate and create
   152     # it. This ensures that we create it on the first meaningful
   152     # it. This ensures that we create it on the first meaningful