equal
deleted
inserted
replaced
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 |