tests: unify test-hgk

This commit is contained in:
Matt Mackall 2010-09-26 13:41:32 -05:00
parent 8043d43725
commit 661bd03f12
3 changed files with 18 additions and 20 deletions

View File

@ -1,11 +0,0 @@
#!/bin/sh
echo "[extensions]" >> $HGRCPATH
echo "hgk=" >> $HGRCPATH
hg init repo
cd repo
echo a > a
hg ci -Am adda
hg debug-cat-file commit 0

View File

@ -1,9 +0,0 @@
adding a
tree a0c8bcbbb45c
parent 000000000000
author test 0 0
committer test 0 0
revision 0
branch default
adda

18
tests/test-hgk.t Normal file
View File

@ -0,0 +1,18 @@
Minimal hgk check
$ echo "[extensions]" >> $HGRCPATH
$ echo "hgk=" >> $HGRCPATH
$ hg init repo
$ cd repo
$ echo a > a
$ hg ci -Am adda
adding a
$ hg debug-cat-file commit 0
tree a0c8bcbbb45c
parent 000000000000
author test 0 0
committer test 0 0
revision 0
branch default
adda