##// END OF EJS Templates
tag: invalidate tag cache immediately after adding new tag (issue3210)...
Mads Kiilerich -
r15929:4091660d default
parent child Browse files
Show More
@@ -326,6 +326,8 b' class localrepository(repo.repository):'
326
326
327 fp.close()
327 fp.close()
328
328
329 self.invalidatecaches()
330
329 if '.hgtags' not in self.dirstate:
331 if '.hgtags' not in self.dirstate:
330 self[None].add(['.hgtags'])
332 self[None].add(['.hgtags'])
331
333
@@ -353,6 +353,9 b' preoutgoing hook can prevent outgoing ch'
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
@@ -569,3 +572,10 b' Ensure hooks can be prioritized'
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
General Comments 0
You need to be logged in to leave comments. Login now