hgext/largefiles/lfcommands.py
changeset 22296 650b5b6e75ed
parent 22197 f72d73937853
child 23139 e53f6b72a0e4
child 23696 1265a3a71d75
--- a/hgext/largefiles/lfcommands.py	Wed Aug 27 12:30:28 2014 +0200
+++ b/hgext/largefiles/lfcommands.py	Tue Aug 26 22:03:32 2014 +0200
@@ -146,7 +146,7 @@
             try:
                 fctx = ctx.filectx(lfutil.standin(f))
             except error.LookupError:
-                raise IOError
+                return None
             renamed = fctx.renamed()
             if renamed:
                 renamed = lfutil.splitstandin(renamed[0])
@@ -248,7 +248,7 @@
             try:
                 fctx = ctx.filectx(srcfname)
             except error.LookupError:
-                raise IOError
+                return None
             renamed = fctx.renamed()
             if renamed:
                 # standin is always a largefile because largefile-ness
@@ -298,7 +298,7 @@
     try:
         fctx = ctx.filectx(f)
     except error.LookupError:
-        raise IOError
+        return None
     renamed = fctx.renamed()
     if renamed:
         renamed = renamed[0]