Bugzilla – Bug 330
Avoid using the external 'diff' command for regression testing
Last modified: 2009-02-21 17:52:00 EST
I just realized Python has builtin modules for comparing files, and so we could do diff'ing using only pure Python code: http://docs.python.org/lib/module-filecmp.html http://docs.python.org/lib/module-difflib.html With some Python love, the trailing carriage return problem could be worked around. Additionally, with no need for 'diff' it would be easier on MinGW users (no need to install MSys). I will work on this some day "in the future", post-3.2.
Note to self, an additional refactoring needed is to move the check for mercurial presence into the configure stage.