Show More
@@ -819,8 +819,8 b' def addremoved(pdiff, ctx, removed):' | |||
|
819 | 819 | pchange = phabchange( |
|
820 | 820 | currentPath=fname, oldPath=fname, type=DiffChangeType.DELETE |
|
821 | 821 | ) |
|
822 | pchange.addoldmode(gitmode[ctx.p1()[fname].flags()]) | |
|
823 | 822 | oldfctx = ctx.p1()[fname] |
|
823 | pchange.addoldmode(gitmode[oldfctx.flags()]) | |
|
824 | 824 | if not (oldfctx.isbinary() or notutf8(oldfctx)): |
|
825 | 825 | maketext(pchange, ctx, fname) |
|
826 | 826 | |
@@ -831,10 +831,10 b' def addmodified(pdiff, ctx, modified):' | |||
|
831 | 831 | """add modified files to the phabdiff""" |
|
832 | 832 | for fname in modified: |
|
833 | 833 | fctx = ctx[fname] |
|
834 |
oldfctx = |
|
|
834 | oldfctx = ctx.p1()[fname] | |
|
835 | 835 | pchange = phabchange(currentPath=fname, oldPath=fname) |
|
836 |
filemode = gitmode[ctx |
|
|
837 |
originalmode = gitmode[ctx |
|
|
836 | filemode = gitmode[fctx.flags()] | |
|
837 | originalmode = gitmode[oldfctx.flags()] | |
|
838 | 838 | if filemode != originalmode: |
|
839 | 839 | pchange.addoldmode(originalmode) |
|
840 | 840 | pchange.addnewmode(filemode) |
@@ -846,7 +846,7 b' def addmodified(pdiff, ctx, modified):' | |||
|
846 | 846 | or notutf8(oldfctx) |
|
847 | 847 | ): |
|
848 | 848 | makebinary(pchange, fctx) |
|
849 |
addoldbinary(pchange, fctx |
|
|
849 | addoldbinary(pchange, oldfctx, fctx) | |
|
850 | 850 | else: |
|
851 | 851 | maketext(pchange, ctx, fname) |
|
852 | 852 | |
@@ -864,7 +864,7 b' def addadded(pdiff, ctx, added, removed)' | |||
|
864 | 864 | oldfctx = None |
|
865 | 865 | pchange = phabchange(currentPath=fname) |
|
866 | 866 | |
|
867 |
filemode = gitmode[ctx |
|
|
867 | filemode = gitmode[fctx.flags()] | |
|
868 | 868 | renamed = fctx.renamed() |
|
869 | 869 | |
|
870 | 870 | if renamed: |
General Comments 0
You need to be logged in to leave comments.
Login now