hgext/largefiles/lfutil.py
changeset 41676 0531dff73d0b
parent 41397 0bd56c291359
child 41759 aaad36b88298
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
   166             lfdirstate.normallookup(lfile)
   166             lfdirstate.normallookup(lfile)
   167     return lfdirstate
   167     return lfdirstate
   168 
   168 
   169 def lfdirstatestatus(lfdirstate, repo):
   169 def lfdirstatestatus(lfdirstate, repo):
   170     pctx = repo['.']
   170     pctx = repo['.']
   171     match = matchmod.always(repo.root, repo.getcwd())
   171     match = matchmod.always()
   172     unsure, s = lfdirstate.status(match, subrepos=[], ignored=False,
   172     unsure, s = lfdirstate.status(match, subrepos=[], ignored=False,
   173                                   clean=False, unknown=False)
   173                                   clean=False, unknown=False)
   174     modified, clean = s.modified, s.clean
   174     modified, clean = s.modified, s.clean
   175     for lfile in unsure:
   175     for lfile in unsure:
   176         try:
   176         try:
   550         # are modified so we can compare only against those.
   550         # are modified so we can compare only against those.
   551         # It can cost a lot of time (several seconds)
   551         # It can cost a lot of time (several seconds)
   552         # otherwise to update all standins if the largefiles are
   552         # otherwise to update all standins if the largefiles are
   553         # large.
   553         # large.
   554         lfdirstate = openlfdirstate(ui, repo)
   554         lfdirstate = openlfdirstate(ui, repo)
   555         dirtymatch = matchmod.always(repo.root, repo.getcwd())
   555         dirtymatch = matchmod.always()
   556         unsure, s = lfdirstate.status(dirtymatch, subrepos=[], ignored=False,
   556         unsure, s = lfdirstate.status(dirtymatch, subrepos=[], ignored=False,
   557                                       clean=False, unknown=False)
   557                                       clean=False, unknown=False)
   558         modifiedfiles = unsure + s.modified + s.added + s.removed
   558         modifiedfiles = unsure + s.modified + s.added + s.removed
   559         lfiles = listlfiles(repo)
   559         lfiles = listlfiles(repo)
   560         # this only loops through largefiles that exist (not
   560         # this only loops through largefiles that exist (not