summaryrefslogtreecommitdiff
path: root/tests/test-diffstat.t
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2011-10-01 20:49:36 +0000
committerLorry <lorry@roadtrain.codethink.co.uk>2012-09-27 13:27:51 +0000
commit921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch)
tree3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-diffstat.t
parent9039c805b0a7e36220101323f82735f08a104b37 (diff)
downloadmercurial-tarball-master.tar.gz
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'tests/test-diffstat.t')
-rw-r--r--tests/test-diffstat.t15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/test-diffstat.t b/tests/test-diffstat.t
index 5d03cdc..2f20d3d 100644
--- a/tests/test-diffstat.t
+++ b/tests/test-diffstat.t
@@ -35,32 +35,30 @@ Narrow diffstat:
$ hg ci -m appenda
- >>> open("c", "wb").write("\0")
- $ touch d
- $ hg add c d
+ $ printf '\0' > c
+ $ hg add c
Binary diffstat:
$ hg diff --stat
- c | Bin
+ c | 0
1 files changed, 0 insertions(+), 0 deletions(-)
Binary git diffstat:
$ hg diff --stat --git
c | Bin
- d | 0
- 2 files changed, 0 insertions(+), 0 deletions(-)
+ 1 files changed, 0 insertions(+), 0 deletions(-)
$ hg ci -m createb
- >>> open("file with spaces", "wb").write("\0")
+ $ printf '\0' > "file with spaces"
$ hg add "file with spaces"
Filename with spaces diffstat:
$ hg diff --stat
- file with spaces | Bin
+ file with spaces | 0
1 files changed, 0 insertions(+), 0 deletions(-)
Filename with spaces git diffstat:
@@ -69,4 +67,3 @@ Filename with spaces git diffstat:
file with spaces | Bin
1 files changed, 0 insertions(+), 0 deletions(-)
- $ cd ..