largefiles: don't reference uninitialized variable (
issue3092)
--- 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)