hgext/largefiles/localstore.py
branchstable
changeset 15371 f26ed4ea46d8
parent 15317 41f371150ccb
child 16928 73b9286e667c
equal deleted inserted replaced
15370:8af6c6d91c92 15371:f26ed4ea46d8
    25         url = os.path.join(remote.path, '.hg', lfutil.longname)
    25         url = os.path.join(remote.path, '.hg', lfutil.longname)
    26         super(localstore, self).__init__(ui, repo, util.expandpath(url))
    26         super(localstore, self).__init__(ui, repo, util.expandpath(url))
    27         self.remote = remote
    27         self.remote = remote
    28 
    28 
    29     def put(self, source, hash):
    29     def put(self, source, hash):
    30         lfutil.createdir(os.path.dirname(lfutil.storepath(self.remote, hash)))
    30         util.makedirs(os.path.dirname(lfutil.storepath(self.remote, hash)))
    31         if lfutil.instore(self.remote, hash):
    31         if lfutil.instore(self.remote, hash):
    32             return
    32             return
    33         lfutil.link(lfutil.storepath(self.repo, hash),
    33         lfutil.link(lfutil.storepath(self.repo, hash),
    34                 lfutil.storepath(self.remote, hash))
    34                 lfutil.storepath(self.remote, hash))
    35 
    35