tests/test-hook.t
changeset 15929 4091660dc130
parent 15896 30c34fde40cc
child 15956 5653f2d166ea
--- a/tests/test-hook.t	Wed Jan 18 17:18:38 2012 +0100
+++ b/tests/test-hook.t	Thu Jan 19 02:14:06 2012 +0100
@@ -353,6 +353,9 @@
   > def verbosehook(ui, **args):
   >     ui.note('verbose output from hook\n')
   > 
+  > def printtags(ui, repo, **args):
+  >     print repo.tags().keys()
+  > 
   > class container:
   >     unreachable = 1
   > EOF
@@ -569,3 +572,10 @@
   calling hook pre-identify.c: hooktests.verbosehook
   verbose output from hook
   cb9a9f314b8b
+
+new tags must be visible in pretxncommit (issue3210)
+
+  $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc
+  $ hg tag -f foo
+  ['a', 'foo', 'tip']
+