Show More
@@ -1748,7 +1748,6 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
1748 | header.append('new mode %s\n' % nmode) |
|
1748 | header.append('new mode %s\n' % nmode) | |
1749 |
|
1749 | |||
1750 | def addindexmeta(meta, oindex, nindex): |
|
1750 | def addindexmeta(meta, oindex, nindex): | |
1751 | if opts.git: |
|
|||
1752 |
|
|
1751 | meta.append('index %s..%s\n' % (oindex, nindex)) | |
1753 |
|
1752 | |||
1754 | def gitindex(text): |
|
1753 | def gitindex(text): | |
@@ -1875,7 +1874,7 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
1875 | header.insert(0, diffline(join(a), join(b), revs)) |
|
1874 | header.insert(0, diffline(join(a), join(b), revs)) | |
1876 | if dodiff == 'binary' and not opts.nobinary: |
|
1875 | if dodiff == 'binary' and not opts.nobinary: | |
1877 | text = mdiff.b85diff(to, tn) |
|
1876 | text = mdiff.b85diff(to, tn) | |
1878 | if text: |
|
1877 | if text and opts.git: | |
1879 | addindexmeta(header, gitindex(to), gitindex(tn)) |
|
1878 | addindexmeta(header, gitindex(to), gitindex(tn)) | |
1880 | else: |
|
1879 | else: | |
1881 | text = mdiff.unidiff(to, date1, |
|
1880 | text = mdiff.unidiff(to, date1, |
General Comments 0
You need to be logged in to leave comments.
Login now