Show More
@@ -1664,19 +1664,17 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
1664 | return os.path.join(prefix, f) |
|
1664 | return os.path.join(prefix, f) | |
1665 |
|
1665 | |||
1666 | def diffline(a, b, revs): |
|
1666 | def diffline(a, b, revs): | |
1667 | if repo.ui.quiet and not opts.git: |
|
|||
1668 | return '' |
|
|||
1669 | parts = ['diff'] |
|
|||
1670 | if opts.git: |
|
1667 | if opts.git: | |
1671 | parts.append('--git') |
|
1668 | line = 'diff --git a/%s b/%s\n' % (a, b) | |
1672 |
if |
|
1669 | elif not repo.ui.quiet: | |
1673 | parts.append(' '.join(["-r %s" % rev for rev in revs])) |
|
1670 | if revs: | |
1674 | if opts.git: |
|
1671 | revinfo = ' '.join(["-r %s" % rev for rev in revs]) | |
1675 | parts.append('a/%s' % a) |
|
1672 | line = 'diff %s %s\n' % (revinfo, a) | |
1676 | parts.append('b/%s' % b) |
|
1673 | else: | |
|
1674 | line = 'diff %s\n' % a | |||
1677 | else: |
|
1675 | else: | |
1678 | parts.append(a) |
|
1676 | line = '' | |
1679 |
return |
|
1677 | return line | |
1680 |
|
1678 | |||
1681 | date1 = util.datestr(ctx1.date()) |
|
1679 | date1 = util.datestr(ctx1.date()) | |
1682 | man1 = ctx1.manifest() |
|
1680 | man1 = ctx1.manifest() |
General Comments 0
You need to be logged in to leave comments.
Login now