Show More
@@ -1057,7 +1057,7 b' def updatedir(ui, repo, patches):' | |||||
1057 |
|
1057 | |||
1058 | return files |
|
1058 | return files | |
1059 |
|
1059 | |||
1060 |
def b85diff( |
|
1060 | def b85diff(to, tn): | |
1061 | '''print base85-encoded binary diff''' |
|
1061 | '''print base85-encoded binary diff''' | |
1062 | def gitindex(text): |
|
1062 | def gitindex(text): | |
1063 | if not text: |
|
1063 | if not text: | |
@@ -1244,7 +1244,7 b' def diff(repo, node1=None, node2=None, f' | |||||
1244 | header.insert(0, 'diff --git a/%s b/%s\n' % (a, b)) |
|
1244 | header.insert(0, 'diff --git a/%s b/%s\n' % (a, b)) | |
1245 | if dodiff: |
|
1245 | if dodiff: | |
1246 | if dodiff == 'binary': |
|
1246 | if dodiff == 'binary': | |
1247 |
text = b85diff( |
|
1247 | text = b85diff(to, tn) | |
1248 | else: |
|
1248 | else: | |
1249 | text = mdiff.unidiff(to, date1, |
|
1249 | text = mdiff.unidiff(to, date1, | |
1250 | # ctx2 date may be dynamic |
|
1250 | # ctx2 date may be dynamic |
General Comments 0
You need to be logged in to leave comments.
Login now