hgext/largefiles/lfutil.py
changeset 50471 521fec115dad
parent 50153 98890baf324e
child 50488 b4a9c8f18928
equal deleted inserted replaced
50470:814f55775b21 50471:521fec115dad
   550 
   550 
   551 
   551 
   552 def islfilesrepo(repo):
   552 def islfilesrepo(repo):
   553     '''Return true if the repo is a largefile repo.'''
   553     '''Return true if the repo is a largefile repo.'''
   554     if b'largefiles' in repo.requirements and any(
   554     if b'largefiles' in repo.requirements and any(
   555         shortnameslash in f[1] for f in repo.store.datafiles()
   555         shortnameslash in entry.unencoded_path
       
   556         for entry in repo.store.datafiles()
   556     ):
   557     ):
   557         return True
   558         return True
   558 
   559 
   559     return any(openlfdirstate(repo.ui, repo, False))
   560     return any(openlfdirstate(repo.ui, repo, False))
   560 
   561