tests/test-hook.t
changeset 15929 4091660dc130
parent 15896 30c34fde40cc
child 15956 5653f2d166ea
equal deleted inserted replaced
15928:3a51eb88046a 15929:4091660dc130
   351   >     return 1 + {}
   351   >     return 1 + {}
   352   > 
   352   > 
   353   > def verbosehook(ui, **args):
   353   > def verbosehook(ui, **args):
   354   >     ui.note('verbose output from hook\n')
   354   >     ui.note('verbose output from hook\n')
   355   > 
   355   > 
       
   356   > def printtags(ui, repo, **args):
       
   357   >     print repo.tags().keys()
       
   358   > 
   356   > class container:
   359   > class container:
   357   >     unreachable = 1
   360   >     unreachable = 1
   358   > EOF
   361   > EOF
   359 
   362 
   360 test python hooks
   363 test python hooks
   567   calling hook pre-identify.a: hooktests.verbosehook
   570   calling hook pre-identify.a: hooktests.verbosehook
   568   verbose output from hook
   571   verbose output from hook
   569   calling hook pre-identify.c: hooktests.verbosehook
   572   calling hook pre-identify.c: hooktests.verbosehook
   570   verbose output from hook
   573   verbose output from hook
   571   cb9a9f314b8b
   574   cb9a9f314b8b
       
   575 
       
   576 new tags must be visible in pretxncommit (issue3210)
       
   577 
       
   578   $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc
       
   579   $ hg tag -f foo
       
   580   ['a', 'foo', 'tip']
       
   581