Mercurial > hg-stable
changeset 15808:62098aeb1e15
largefiles: don't reference uninitialized variable (issue3092)
author | Levi Bard <levi@unity3d.com> |
---|---|
date | Sun, 08 Jan 2012 17:03:39 +0100 |
parents | 7e5af0ee975c |
children | 884946c002b8 |
files | hgext/largefiles/lfcommands.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)