hgext/largefiles/lfutil.py
branchstable
changeset 29329 f359cdc91e21
parent 28877 8079639b20dc
child 29349 8bf84295e59b
equal deleted inserted replaced
29323:d29cb5e735e9 29329:f359cdc91e21
   202     path = storepath(repo, hash, False)
   202     path = storepath(repo, hash, False)
   203 
   203 
   204     if instore(repo, hash):
   204     if instore(repo, hash):
   205         return (path, True)
   205         return (path, True)
   206     elif repo.shared() and instore(repo, hash, True):
   206     elif repo.shared() and instore(repo, hash, True):
   207         return storepath(repo, hash, True)
   207         return storepath(repo, hash, True), True
   208 
   208 
   209     return (path, False)
   209     return (path, False)
   210 
   210 
   211 def copyfromcache(repo, hash, filename):
   211 def copyfromcache(repo, hash, filename):
   212     '''Copy the specified largefile from the repo or system cache to
   212     '''Copy the specified largefile from the repo or system cache to