Show More
@@ -1293,11 +1293,10 b' def diff(repo, node1=None, node2=None, m' | |||
|
1293 | 1293 | date1 = util.datestr(ctx1.date()) |
|
1294 | 1294 | man1 = ctx1.manifest() |
|
1295 | 1295 | |
|
1296 | if repo.ui.quiet: | |
|
1297 | r = None | |
|
1298 | else: | |
|
1296 | revs = None | |
|
1297 | if not repo.ui.quiet and not opts.git: | |
|
1299 | 1298 | hexfunc = repo.ui.debugflag and hex or short |
|
1300 | r = [hexfunc(node) for node in [node1, node2] if node] | |
|
1299 | revs = [hexfunc(node) for node in [node1, node2] if node] | |
|
1301 | 1300 | |
|
1302 | 1301 | if opts.git: |
|
1303 | 1302 | copy, diverge = copies.copies(repo, ctx1, ctx2, repo[nullid]) |
@@ -1350,8 +1349,7 b' def diff(repo, node1=None, node2=None, m' | |||
|
1350 | 1349 | _addmodehdr(header, omode, nmode) |
|
1351 | 1350 | if util.binary(to) or util.binary(tn): |
|
1352 | 1351 | dodiff = 'binary' |
|
1353 | r = None | |
|
1354 | header.insert(0, mdiff.diffline(r, a, b, opts)) | |
|
1352 | header.insert(0, mdiff.diffline(revs, a, b, opts)) | |
|
1355 | 1353 | if dodiff: |
|
1356 | 1354 | if dodiff == 'binary': |
|
1357 | 1355 | text = b85diff(to, tn) |
@@ -1359,7 +1357,7 b' def diff(repo, node1=None, node2=None, m' | |||
|
1359 | 1357 | text = mdiff.unidiff(to, date1, |
|
1360 | 1358 | # ctx2 date may be dynamic |
|
1361 | 1359 | tn, util.datestr(ctx2.date()), |
|
1362 | a, b, r, opts=opts) | |
|
1360 | a, b, revs, opts=opts) | |
|
1363 | 1361 | if header and (text or len(header) > 1): |
|
1364 | 1362 | yield ''.join(header) |
|
1365 | 1363 | if text: |
General Comments 0
You need to be logged in to leave comments.
Login now