diffing
I always assumed the diff algorithm to be quite standard and used anywhere there is a diff function, well it seems it is not, and it also seems that human readability is very dependent on the tool you use:
Here is what diff -u, git diff and tla diff give:
@@ -42,10 +42,9 @@ include $(DEPTH)/config/autoconf.mk -include $(topsrcdir)/config/rules.mk +EXTRA_COMPONENTS = nsKillAll.js -libs:: - $(INSTALL) $(srcdir)/nsKillAll.js $(DIST)/bin/components +include $(topsrcdir)/config/rules.mk clean:: rm -f $(DIST)/bin/components/nsKillAll.js
This is the least human readable output. In comparison, svn diff, svk diff and bzr diff do output:
@@ -42,11 +42,10 @@ include $(DEPTH)/config/autoconf.mk +EXTRA_COMPONENTS = nsKillAll.js + include $(topsrcdir)/config/rules.mk -libs:: - $(INSTALL) $(srcdir)/nsKillAll.js $(DIST)/bin/components - clean:: rm -f $(DIST)/bin/components/nsKillAll.js
Mercurial outputs:
@@ -42,10 +42,9 @@ include $(DEPTH)/config/autoconf.mk +EXTRA_COMPONENTS = nsKillAll.js + include $(topsrcdir)/config/rules.mk - -libs:: - $(INSTALL) $(srcdir)/nsKillAll.js $(DIST)/bin/components clean:: rm -f $(DIST)/bin/components/nsKillAll.js
which is pretty similar.
I got too fed up with tla and baz to try more (and didn't even go up to committing a file in baz, so there's no diff result for it)
2007-03-16 21:55:44+0900