changeset 44450:aa9979bb6853

phabricator: rename a variable to clarify that it is the parent filecontext Differential Revision: https://phab.mercurial-scm.org/D8219
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 20 Feb 2020 12:42:07 -0500
parents 98f7b9cf7bfc
children 66a05dbb8b4c
files hgext/phabricator.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/phabricator.py	Wed Feb 19 13:33:58 2020 -0500
+++ b/hgext/phabricator.py	Thu Feb 20 12:42:07 2020 -0500
@@ -814,8 +814,8 @@
             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)