Differences between revisions 4 and 5
Revision 4 as of 2010-09-13 15:56:18
Size: 676
Editor: BrendanCully
Comment: Make extdiff actually use cwdiff instead of wdiff
Revision 5 as of 2015-02-27 19:59:37
Size: 670
Editor: JordiGH
Comment: remove hgext. prefix
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
  hgext.extdiff =   extdiff =

Making a word difference using the ExtdiffExtension and GNU wdiff, somehow what git diff --color-words does.

Steps:

  1. Download cwdiff, a shell script, which wraps wdiff to support directories and colorizes the output.

  2. Enable ExtdiffExtension (in ~/.hgrc):

  [extensions]
  extdiff =
  1. Add wdiff command (in ~/.hgrc):

  [extdiff]
  # if cwdiff is in your path, otherwise set to wherever you've installed cwdiff
  cmd.wdiff = cwdiff
  #add --no-color below, if you dislike colors!
  opts.wdiff = --diff --ab
  1. Run

$ hg wdiff

WordDiff (last edited 2018-08-02 16:05:33 by AntonShestakov)