mercurial/patch.py
changeset 41784 251332dbf33d
parent 41759 aaad36b88298
child 41982 f8c5225b9054
equal deleted inserted replaced
41783:7b04b1154c15 41784:251332dbf33d
  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         # ------------------------------------|----------------------------