equal
deleted
inserted
replaced
181 echo 'commit.abort = python:hooktests.aborthook' >> .hg/hgrc |
181 echo 'commit.abort = python:hooktests.aborthook' >> .hg/hgrc |
182 |
182 |
183 echo a >> a |
183 echo a >> a |
184 hg --traceback commit -A -m a 2>&1 | grep '^Traceback' |
184 hg --traceback commit -A -m a 2>&1 | grep '^Traceback' |
185 |
185 |
|
186 cd .. |
|
187 hg init c |
|
188 cd c |
|
189 |
|
190 cat > hookext.py <<EOF |
|
191 def autohook(**args): |
|
192 print "Automatically installed hook" |
|
193 |
|
194 def reposetup(ui, repo): |
|
195 repo.ui.setconfig("hooks", "commit.auto", autohook) |
|
196 EOF |
|
197 echo '[extensions]' >> .hg/hgrc |
|
198 echo 'hookext = hookext.py' >> .hg/hgrc |
|
199 |
|
200 touch foo |
|
201 hg add foo |
|
202 hg ci -m 'add foo' |
|
203 echo >> foo |
|
204 hg ci --debug -m 'change foo' | sed -e 's/ at .*>/>/' |
|
205 |
186 exit 0 |
206 exit 0 |