Mercurial > hg
comparison hgext/phabricator.py @ 44425: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 |
comparison
equal
deleted
inserted
replaced
44424:98f7b9cf7bfc | 44425:aa9979bb6853 |
---|---|
812 for fname in removed: | 812 for fname in removed: |
813 pchange = phabchange( | 813 pchange = phabchange( |
814 currentPath=fname, oldPath=fname, type=DiffChangeType.DELETE | 814 currentPath=fname, oldPath=fname, type=DiffChangeType.DELETE |
815 ) | 815 ) |
816 pchange.addoldmode(gitmode[ctx.p1()[fname].flags()]) | 816 pchange.addoldmode(gitmode[ctx.p1()[fname].flags()]) |
817 fctx = ctx.p1()[fname] | 817 oldfctx = ctx.p1()[fname] |
818 if not (fctx.isbinary() or notutf8(fctx)): | 818 if not (oldfctx.isbinary() or notutf8(oldfctx)): |
819 maketext(pchange, ctx, fname) | 819 maketext(pchange, ctx, fname) |
820 | 820 |
821 pdiff.addchange(pchange) | 821 pdiff.addchange(pchange) |
822 | 822 |
823 | 823 |