Mercurial

From emboxit
Jump to: navigation, search

File:Logo-droplets-50.png


File:Tortoisehg-1.jpg File:Bitbucket-icon.png

TortoiseHg is Windows shell extension and GUI, from bitbucket




Mercurial knowhow

Yes.
You will be able to do meaningful diffs for MS Word documents.
   If you have TortoiseHg installed and you have set up a repository, right-click the file for which you want to check the diffs.
   On the context menu, click TortoiseHg > Visual Diffs.
   In the Visual Diffs dialog, select docdiff, instead of kdiff3.
   Double-click the file in the Visual Diffs dialog.
MS Word will open a Compare Result Word document, which will show the differences between the current version of the document 
and the previous version as Tracked Changes.
For Pdf files, I was able to get the GPL licensed DiffPDF hooked up to do comparisons between revisions of pdf files.
I added the following to my mercurial.ini file:
[extdiff]
cmd.pdfdiff = [\path\to\diffpdf.exe]
opts.pdfdiff= -a $local $other

[diff-patterns]
**.pdf=pdfdiff

Now when I click on the pdf file in tortoisehg (or use hg pdfdiff at the cmd line), 
it opens the two files for comparison. Since my pdf's tend to  contain images, 
I use the appearance comparer (-a in opts). If you have mostly text, you can use -w instead.
 
It defaults to highlighting to show the diffs. I prefer the Src Xor Dest option for displaying the differences, 
but I don't think there is a cmd line option for that.
  • Encode/decode filter for version controlling zipped document formats like docx or odt as uncompressed zip archives. This improves delta compression and results in less space consumption.