# HG changeset patch # User Matt Harbison # Date 2020-02-20 17:42:07 # Node ID aa9979bb68535ded2c4e8f2642ef2d7135b34c66 # Parent 98f7b9cf7bfc9a3539f44ea6dcf0e5ecfade060d phabricator: rename a variable to clarify that it is the parent filecontext Differential Revision: https://phab.mercurial-scm.org/D8219 diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -814,8 +814,8 @@ def addremoved(pdiff, ctx, removed): currentPath=fname, oldPath=fname, type=DiffChangeType.DELETE ) pchange.addoldmode(gitmode[ctx.p1()[fname].flags()]) - fctx = ctx.p1()[fname] - if not (fctx.isbinary() or notutf8(fctx)): + oldfctx = ctx.p1()[fname] + if not (oldfctx.isbinary() or notutf8(oldfctx)): maketext(pchange, ctx, fname) pdiff.addchange(pchange)