diffstat: made test case work with POSIX sh and printf
* arithmetic expression ((...)), without $, is bashism.
* printf '\xXX' seems non-standard. '\0' is okay.
http://www.opengroup.org/onlinepubs/009695399/utilities/printf.html
tested with bash 4.0 and dash 0.5.5.1
adding a
adding b
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
created new head
% Rename is tracked
2:rename A
diff --git a/a b/a-renamed
rename from a
rename to a-renamed
% Rebase the revision containing the rename
saving bundle to
% Rename is not lost
2:rename A
diff --git a/a b/a-renamed
rename from a
rename to a-renamed
adding a
adding b
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
created new head
% Copy is tracked
2:copy A
diff --git a/a b/a-copied
copy from a
copy to a-copied
% Rebase the revision containing the copy
saving bundle to
% Copy is not lost
2:copy A
diff --git a/a b/a-copied
copy from a
copy to a-copied