diff hgext/largefiles/localstore.py @ 19007:266b5fb72f26

largefiles: 'put' should store 'source' file in under 'hash', also in localstore
author Mads Kiilerich <madski@unity3d.com>
date Mon, 15 Apr 2013 23:34:36 +0200
parents ad993cb7bbb1
children c082a4756ed7
line wrap: on
line diff
--- a/hgext/largefiles/localstore.py	Tue Apr 16 04:35:10 2013 +0200
+++ b/hgext/largefiles/localstore.py	Mon Apr 15 23:34:36 2013 +0200
@@ -25,8 +25,7 @@
     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 = {}