equal
deleted
inserted
replaced
2680 if opts.showsimilarity: |
2680 if opts.showsimilarity: |
2681 sim = similar.score(ctx1[path1], ctx2[path2]) * 100 |
2681 sim = similar.score(ctx1[path1], ctx2[path2]) * 100 |
2682 header.append('similarity index %d%%' % sim) |
2682 header.append('similarity index %d%%' % sim) |
2683 header.append('%s from %s' % (copyop, path1)) |
2683 header.append('%s from %s' % (copyop, path1)) |
2684 header.append('%s to %s' % (copyop, path2)) |
2684 header.append('%s to %s' % (copyop, path2)) |
2685 elif revs and not repo.ui.quiet: |
2685 elif revs: |
2686 header.append(diffline(path1, revs)) |
2686 header.append(diffline(path1, revs)) |
2687 |
2687 |
2688 # fctx.is | diffopts | what to | is fctx.data() |
2688 # fctx.is | diffopts | what to | is fctx.data() |
2689 # binary() | text nobinary git index | output? | outputted? |
2689 # binary() | text nobinary git index | output? | outputted? |
2690 # ------------------------------------|---------------------------- |
2690 # ------------------------------------|---------------------------- |