diff --git a/hgext/largefiles/basestore.py b/hgext/largefiles/basestore.py --- a/hgext/largefiles/basestore.py +++ b/hgext/largefiles/basestore.py @@ -38,7 +38,7 @@ class basestore(object): self.url = url def put(self, source, hash): - '''Put source file into the store under /.''' + '''Put source file into the store so it can be retrieved by hash.''' raise NotImplementedError('abstract method') def exists(self, hashes): diff --git a/hgext/largefiles/localstore.py b/hgext/largefiles/localstore.py --- a/hgext/largefiles/localstore.py +++ b/hgext/largefiles/localstore.py @@ -25,8 +25,7 @@ class localstore(basestore.basestore): def put(self, source, hash): if lfutil.instore(self.remote, hash): return - lfutil.link(lfutil.storepath(self.repo, hash), - lfutil.storepath(self.remote, hash)) + lfutil.link(source, lfutil.storepath(self.remote, hash)) def exists(self, hashes): retval = {}