mercurial/localrepo.py
changeset 5801 1b230f506346
parent 5368 61462e7d62ed
child 5812 41ca0e20117e
child 5882 f791a2acf11b
--- a/mercurial/localrepo.py	Sat Jan 05 17:55:16 2008 +0100
+++ b/mercurial/localrepo.py	Tue Dec 18 12:45:30 2007 -0800
@@ -122,7 +122,6 @@
                 fp.write('\n')
             fp.write('%s %s\n' % (hex(node), munge and munge(name) or name))
             fp.close()
-            self.hook('tag', node=hex(node), tag=name, local=local)
 
         prevtags = ''
         if local:
@@ -135,6 +134,7 @@
 
             # local tags are stored in the current charset
             writetag(fp, name, None, prevtags)
+            self.hook('tag', node=hex(node), tag=name, local=local)
             return
 
         if use_dirstate: