largefiles: don't reference uninitialized variable (issue3092)
authorLevi Bard <levi@unity3d.com>
Sun, 08 Jan 2012 17:03:39 +0100
changeset 15808 62098aeb1e15
parent 15807 7e5af0ee975c
child 15809 884946c002b8
largefiles: don't reference uninitialized variable (issue3092)
hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py	Mon Jan 09 20:17:37 2012 -0600
+++ b/hgext/largefiles/lfcommands.py	Sun Jan 08 17:03:39 2012 +0100
@@ -237,7 +237,9 @@
             dstfiles.append(lfutil.standin(f))
             # largefile in manifest if it has not been removed/renamed
             if f in ctx.manifest():
-                if 'l' in ctx.filectx(f).flags():
+                fctx = ctx.filectx(f)
+                if 'l' in fctx.flags():
+                    renamed = fctx.renamed()
                     if renamed and renamed[0] in lfiles:
                         raise util.Abort(_('largefile %s becomes symlink') % f)