hgext/largefiles/lfutil.py
changeset 50538 862e3a13da44
parent 50522 b4a9c8f18928
child 50912 3934d85cf8e9
equal deleted inserted replaced
50537:aede57466804 50538:862e3a13da44
   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:
   554     if b'largefiles' in repo.requirements:
   555         for entry in repo.store.datafiles():
   555         for entry in repo.store.data_entries():
   556             if entry.is_revlog and shortnameslash in entry.target_id:
   556             if entry.is_revlog and shortnameslash in entry.target_id:
   557                 return True
   557                 return True
   558 
   558 
   559     return any(openlfdirstate(repo.ui, repo, False))
   559     return any(openlfdirstate(repo.ui, repo, False))
   560 
   560