Show More
@@ -190,12 +190,11 def listlfiles(repo, rev=None, matcher=N | |||||
190 | if rev is not None or repo.dirstate[f] != '?'] |
|
190 | if rev is not None or repo.dirstate[f] != '?'] | |
191 |
|
191 | |||
192 | def instore(repo, hash, forcelocal=False): |
|
192 | def instore(repo, hash, forcelocal=False): | |
193 |
'''Return true if a largefile with the given hash exists in the |
|
193 | '''Return true if a largefile with the given hash exists in the store''' | |
194 | cache.''' |
|
|||
195 | return os.path.exists(storepath(repo, hash, forcelocal)) |
|
194 | return os.path.exists(storepath(repo, hash, forcelocal)) | |
196 |
|
195 | |||
197 | def storepath(repo, hash, forcelocal=False): |
|
196 | def storepath(repo, hash, forcelocal=False): | |
198 |
'''Return the correct location in the repository largefiles |
|
197 | '''Return the correct location in the repository largefiles store for a | |
199 | file with the given hash.''' |
|
198 | file with the given hash.''' | |
200 | if not forcelocal and repo.shared(): |
|
199 | if not forcelocal and repo.shared(): | |
201 | return repo.vfs.reljoin(repo.sharedpath, longname, hash) |
|
200 | return repo.vfs.reljoin(repo.sharedpath, longname, hash) |
General Comments 0
You need to be logged in to leave comments.
Login now