tests/test-hook.t
changeset 37753 f450a3be62ec
parent 37415 c2c8962a9465
child 37754 9bbb13c0f982
equal deleted inserted replaced
37752:63b7415e37a5 37753:f450a3be62ec
   442   > 
   442   > 
   443   > def verbosehook(ui, **args):
   443   > def verbosehook(ui, **args):
   444   >     ui.note(b'verbose output from hook\n')
   444   >     ui.note(b'verbose output from hook\n')
   445   > 
   445   > 
   446   > def printtags(ui, repo, **args):
   446   > def printtags(ui, repo, **args):
   447   >     ui.write(b'%s\n' % sorted(repo.tags()))
   447   >     ui.write(b'[%s]\n' % b', '.join(sorted(repo.tags())))
   448   > 
   448   > 
   449   > class container:
   449   > class container:
   450   >     unreachable = 1
   450   >     unreachable = 1
   451   > EOF
   451   > EOF
   452 
   452 
   764 
   764 
   765 new tags must be visible in pretxncommit (issue3210)
   765 new tags must be visible in pretxncommit (issue3210)
   766 
   766 
   767   $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc
   767   $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc
   768   $ hg tag -f foo
   768   $ hg tag -f foo
   769   ['a', 'foo', 'tip']
   769   [a, foo, tip]
   770 
   770 
   771 post-init hooks must not crash (issue4983)
   771 post-init hooks must not crash (issue4983)
   772 This also creates the `to` repo for the next test block.
   772 This also creates the `to` repo for the next test block.
   773 
   773 
   774   $ cd ..
   774   $ cd ..