site

(Pierre-Yves David)
2011-07-08: tag: do not publish for local tag.

tag: do not publish for local tag.

diff --git a/states.py b/states.py
--- a/states.py
+++ b/states.py
@@ -400,7 +400,8 @@ def reposetup(ui, repo):
 
         def _tag(self, names, node, *args, **kwargs):
             tagnode = o_tag(names, node, *args, **kwargs)
-            self.setstate(ST0, [node, tagnode])
+            if tagnode is not None: # do nothing for local one
+                self.setstate(ST0, [node, tagnode])
             return tagnode
 
         ### rollback support