changeset 11663:c1b11ee12fe7

test-permissions: echo commands to make output readable
author Martin Geisler <mg@aragost.com>
date Thu, 22 Jul 2010 13:48:34 +0200
parents a3bfdf212094
children 8b3fea709bd2
files tests/test-permissions tests/test-permissions.out
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-permissions	Fri Jul 23 00:04:18 2010 +0200
+++ b/tests/test-permissions	Thu Jul 22 13:48:34 2010 +0200
@@ -1,27 +1,37 @@
 #!/bin/sh
 
+echo '% hg init t'
 hg init t
 cd t
 echo foo > a
+echo '% hg add a'
 hg add a
+echo '% hg commit'
 hg commit -m "1" -d "1000000 0"
+echo '% hg verify'
 hg verify
 chmod -r .hg/store/data/a.i
+echo '% hg verify'
 hg verify 2>/dev/null || echo verify failed
 chmod +r .hg/store/data/a.i
+echo '% hg verify'
 hg verify 2>/dev/null || echo verify failed
 chmod -w .hg/store/data/a.i
 echo barber > a
+echo '% hg commit'
 hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
 chmod -w .
+echo '% hg diff'
 hg diff --nodates
 chmod +w .
 
 chmod +w .hg/store/data/a.i
 mkdir dir
 touch dir/a
+echo '% hg status'
 hg status
 chmod -rx dir
+echo '% hg status'
 hg status
 # reenable perm to allow deletion
 chmod +rx dir
--- a/tests/test-permissions.out	Fri Jul 23 00:04:18 2010 +0200
+++ b/tests/test-permissions.out	Thu Jul 22 13:48:34 2010 +0200
@@ -1,26 +1,36 @@
+% hg init t
+% hg add a
+% hg commit
+% hg verify
 checking changesets
 checking manifests
 crosschecking files in changesets and manifests
 checking files
 1 files, 1 changesets, 1 total revisions
+% hg verify
 checking changesets
 checking manifests
 crosschecking files in changesets and manifests
 checking files
 verify failed
+% hg verify
 checking changesets
 checking manifests
 crosschecking files in changesets and manifests
 checking files
 1 files, 1 changesets, 1 total revisions
+% hg commit
 commit failed
+% hg diff
 diff -r c1fab96507ef a
 --- a/a
 +++ b/a
 @@ -1,1 +1,1 @@
 -foo
 +barber
+% hg status
 M a
 ? dir/a
+% hg status
 dir: Permission denied
 M a