hgext/largefiles/localstore.py
changeset 19007 266b5fb72f26
parent 19003 ad993cb7bbb1
child 24630 c082a4756ed7
equal deleted inserted replaced
19006:0b3b84222a2d 19007:266b5fb72f26
    23         super(localstore, self).__init__(ui, repo, self.remote.url())
    23         super(localstore, self).__init__(ui, repo, self.remote.url())
    24 
    24 
    25     def put(self, source, hash):
    25     def put(self, source, hash):
    26         if lfutil.instore(self.remote, hash):
    26         if lfutil.instore(self.remote, hash):
    27             return
    27             return
    28         lfutil.link(lfutil.storepath(self.repo, hash),
    28         lfutil.link(source, lfutil.storepath(self.remote, hash))
    29                 lfutil.storepath(self.remote, hash))
       
    30 
    29 
    31     def exists(self, hashes):
    30     def exists(self, hashes):
    32         retval = {}
    31         retval = {}
    33         for hash in hashes:
    32         for hash in hashes:
    34             retval[hash] = lfutil.instore(self.remote, hash)
    33             retval[hash] = lfutil.instore(self.remote, hash)