hgext/largefiles/lfcommands.py
changeset 39710 7375a9ab0149
parent 39390 a65ad9b22a00
child 40675 9fcf8084ada8
--- a/hgext/largefiles/lfcommands.py	Wed Sep 19 00:23:02 2018 -0400
+++ b/hgext/largefiles/lfcommands.py	Tue Jul 17 17:16:22 2018 -0700
@@ -209,6 +209,10 @@
             if f in ctx.manifest():
                 fctx = ctx.filectx(f)
                 renamed = fctx.renamed()
+                if renamed is None:
+                    # the code below assumes renamed to be a boolean or a list
+                    # and won't quite work with the value None
+                    renamed = False
                 renamedlfile = renamed and renamed[0] in lfiles
                 islfile |= renamedlfile
                 if 'l' in fctx.flags():