##// END OF EJS Templates
trydiff: read flags in one place...
Martin von Zweigbergk -
r24103:c666c85f default
parent child Browse files
Show More
@@ -1772,8 +1772,6 b' def trydiff(repo, revs, ctx1, ctx2, modi'
1772 1772 if f not in ctx1:
1773 1773 addedset.add(f)
1774 1774 for f in sorted(modified + added + removed):
1775 flag1 = None
1776 flag2 = None
1777 1775 content1 = None
1778 1776 content2 = None
1779 1777 copyop = None
@@ -1785,11 +1783,9 b' def trydiff(repo, revs, ctx1, ctx2, modi'
1785 1783 if opts.git or losedatafn:
1786 1784 if f in addedset:
1787 1785 f1 = None
1788 flag2 = ctx2.flags(f)
1789 1786 if f in copy:
1790 1787 if opts.git:
1791 1788 f1 = copy[f]
1792 flag1 = ctx1.flags(f1)
1793 1789 if f1 in removedset and f1 not in gone:
1794 1790 copyop = 'rename'
1795 1791 gone.add(f1)
@@ -1803,14 +1799,15 b' def trydiff(repo, revs, ctx1, ctx2, modi'
1803 1799 if (f in copyto and copyto[f] in addedset
1804 1800 and copy[copyto[f]] == f):
1805 1801 continue
1806 else:
1807 flag1 = ctx1.flags(f)
1808 else:
1809 flag1 = ctx1.flags(f)
1810 flag2 = ctx2.flags(f)
1811 1802
1803 flag1 = None
1804 flag2 = None
1812 1805 binary = False
1813 1806 if opts.git or losedatafn:
1807 if f1:
1808 flag1 = ctx1.flags(f1)
1809 if f2:
1810 flag2 = ctx2.flags(f2)
1814 1811 binary = util.binary(content1) or util.binary(content2)
1815 1812
1816 1813 if losedatafn and not opts.git:
General Comments 0
You need to be logged in to leave comments. Login now