##// END OF EJS Templates
largefiles: introduce lfutil.findstorepath()...
Matt Harbison -
r24629:8dc2533f default
parent child Browse files
Show More
@@ -170,6 +170,13 b' def instore(repo, hash):'
170 def storepath(repo, hash):
170 def storepath(repo, hash):
171 return repo.join(longname, hash)
171 return repo.join(longname, hash)
172
172
173 def findstorepath(repo, hash):
174 '''Search through the local store path(s) to find the file for the given
175 hash. If the file is not found, its path in the primary store is returned.
176 The return value is a tuple of (path, exists(path)).
177 '''
178 return (storepath(repo, hash), instore(repo, hash))
179
173 def copyfromcache(repo, hash, filename):
180 def copyfromcache(repo, hash, filename):
174 '''Copy the specified largefile from the repo or system cache to
181 '''Copy the specified largefile from the repo or system cache to
175 filename in the repository. Return true on success or false if the
182 filename in the repository. Return true on success or false if the
General Comments 0
You need to be logged in to leave comments. Login now