linux - How do I open a (Mercurial) patch file in a human-readable format (preferably with kdiff3)? -


the mercurial command

hg diff > mypatchfile 

compiles "patch" file representing differences between working directory , last commit. opening file plain text results in presentation of changes quite difficult read. want open file in diff tool clearer presentation of differences.

i know diff tool kompare can this, using command

kompare mypatchfile 

but while presentation more readable plain text format, find lacking.

i prefer kdiff3. can tool open patch files? command

kdiff3 mypatchfile 

doesn't work. instead, patch file opened in plain-text format in left panel, while right panel empty. seems kdiff3 should able open patch files, because can write

hg extdiff -p kdiff3 

and presentation want. however, don't see how can similar results exported patch file. suggestions?

(i appreciate recommendations other diff tools can open , display patch files in readable format.)

  1. you can't easy (but can try some tricks some patches)
  2. hg extdiff -p kdiff3 not visualize custom patch, (read extdiff extension wiki) show in dual-window mode difference between 2 revisions (see difference in terms) - working dir , parent in simplest case (and sources diffing full files relevant revisions)

Comments