hgext/largefiles/lfutil.py
changeset 27903 512a814c5595
parent 26823 45e8bd2f36f0
child 27942 eb1135d5e688
--- a/hgext/largefiles/lfutil.py	Thu Jan 14 10:22:55 2016 -0800
+++ b/hgext/largefiles/lfutil.py	Sun Jan 17 17:23:32 2016 +0100
@@ -221,7 +221,12 @@
     hash = readstandin(repo, file, rev)
     if instore(repo, hash):
         return
-    copytostoreabsolute(repo, repo.wjoin(file), hash)
+    absfile = repo.wjoin(file)
+    if os.path.exists(absfile):
+        copytostoreabsolute(repo, absfile, hash)
+    else:
+        repo.ui.warn(_("%s: largefile %s not available from local store\n") %
+                     (file, hash))
 
 def copyalltostore(repo, node):
     '''Copy all largefiles in a given revision to the store'''