Show More
@@ -1747,13 +1747,9 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||
|
1747 | 1747 | header.append('old mode %s\n' % omode) |
|
1748 | 1748 | header.append('new mode %s\n' % nmode) |
|
1749 | 1749 | |
|
1750 |
def addindexmeta(meta, |
|
|
1750 | def addindexmeta(meta, oindex, nindex): | |
|
1751 | 1751 | if opts.git: |
|
1752 | i = len(revs) | |
|
1753 | if i==2: | |
|
1754 | meta.append('index %s..%s\n' % tuple(revs)) | |
|
1755 | elif i==3: | |
|
1756 | meta.append('index %s,%s..%s\n' % tuple(revs)) | |
|
1752 | meta.append('index %s..%s\n' % (oindex, nindex)) | |
|
1757 | 1753 | |
|
1758 | 1754 | def gitindex(text): |
|
1759 | 1755 | if not text: |
@@ -1880,7 +1876,7 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||
|
1880 | 1876 | if dodiff == 'binary' and not opts.nobinary: |
|
1881 | 1877 | text = mdiff.b85diff(to, tn) |
|
1882 | 1878 | if text: |
|
1883 |
addindexmeta(header, |
|
|
1879 | addindexmeta(header, gitindex(to), gitindex(tn)) | |
|
1884 | 1880 | else: |
|
1885 | 1881 | text = mdiff.unidiff(to, date1, |
|
1886 | 1882 | tn, date2, |
General Comments 0
You need to be logged in to leave comments.
Login now