hgext/largefiles/lfutil.py
changeset 15188 8e115063950d
parent 15171 547da6115d1d
child 15206 f85c76b16f27
equal deleted inserted replaced
15187:0292f88d3b86 15188:8e115063950d
   482 def unixpath(path):
   482 def unixpath(path):
   483     return os.path.normpath(path).replace(os.sep, '/')
   483     return os.path.normpath(path).replace(os.sep, '/')
   484 
   484 
   485 def islfilesrepo(repo):
   485 def islfilesrepo(repo):
   486     return ('largefiles' in repo.requirements and
   486     return ('largefiles' in repo.requirements and
   487             any_(shortname + '/' in f[0] for f in repo.store.datafiles())
   487             any_(shortname + '/' in f[0] for f in repo.store.datafiles()))
   488 
   488 
   489 def any_(gen):
   489 def any_(gen):
   490     for x in gen:
   490     for x in gen:
   491         if x:
   491         if x:
   492             return True
   492             return True