Skip to content

Commit d945374

Browse files
committed
test: make the test show all possible actionnable data
1 parent ad984df commit d945374

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

integrationtests/test-git.t

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ All the hooks!
131131
> echo "class loghook(basehook):" >> $hpath
132132
> echo " def check(self, log, revdata):" >> $hpath
133133
> echo " with open('$serverpath/res','a') as k:" >> $hpath
134-
> echo " k.write('$side: $hook\\\n')" >> $hpath
134+
> echo " k.write('$side: $hook %s\\\n' %sorted(vars(revdata)))" >> $hpath
135135
> echo " return True" >> $hpath
136136
> echo "runhooks('$hook', hooks=[loghook])" >> $hpath
137137
> chmod +x $hpath
@@ -155,20 +155,20 @@ All the hooks!
155155
$ echo "op: after push" >> $serverpath/res
156156
$ cat $serverpath/res
157157
op: before first commit
158-
client: pre-commit
159-
client: prepare-commit-msg
160-
client: commit-msg
161-
client: post-commit
158+
client: pre-commit ['_revs', 'reporoot']
159+
client: prepare-commit-msg ['_revs', 'messagefile', 'mode', 'reporoot', 'sha']
160+
client: commit-msg ['_revs', 'messagefile', 'reporoot']
161+
client: post-commit ['_revs', 'reporoot']
162162
op: after first commit
163163
op: before second commit
164-
client: pre-commit
165-
client: prepare-commit-msg
164+
client: pre-commit ['_revs', 'reporoot']
165+
client: prepare-commit-msg ['_revs', 'messagefile', 'mode', 'reporoot', 'sha']
166166
op: after second commit
167167
op: before push
168-
client: pre-push
169-
server: pre-receive
170-
server: update
171-
server: post-receive
172-
server: post-update
168+
client: pre-push ['_revs', 'reporoot', 'revstobepushed']
169+
server: pre-receive ['_revs', 'receivedrevs', 'reporoot']
170+
server: update ['_revs', 'new', 'old', 'refname', 'reporoot']
171+
server: post-receive ['_revs', 'receivedrevs', 'reporoot']
172+
server: post-update ['_revs', 'reporoot']
173173
op: after push
174174

0 commit comments

Comments
 (0)