##// END OF EJS Templates
lfs: add a comment to describe subtle local blobstore open() behavior
Matt Harbison -
r35555:58fda95a default
parent child Browse files
Show More
@@ -103,6 +103,12 b' class local(object):'
103 def open(self, oid):
103 def open(self, oid):
104 """Open a read-only file descriptor to the named blob, in either the
104 """Open a read-only file descriptor to the named blob, in either the
105 usercache or the local store."""
105 usercache or the local store."""
106 # The usercache is the most likely place to hold the file. Commit will
107 # write to both it and the local store, as will anything that downloads
108 # the blobs. However, things like clone without an update won't
109 # populate the local store. For an init + push of a local clone,
110 # the usercache is the only place it _could_ be. If not present, the
111 # missing file msg here will indicate the local repo, not the usercache.
106 if self.cachevfs.exists(oid):
112 if self.cachevfs.exists(oid):
107 return self.cachevfs(oid, 'rb')
113 return self.cachevfs(oid, 'rb')
108
114
General Comments 0
You need to be logged in to leave comments. Login now