tag: do not publish for local tag.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 08 Jul 2011 18:42:28 +0200
changeset 31 1fef89f56588
parent 30 a2189159e92f
child 32 c27491be4431
tag: do not publish for local tag.
states.py
--- a/states.py	Thu Jul 07 13:42:47 2011 +0200
+++ b/states.py	Fri Jul 08 18:42:28 2011 +0200
@@ -400,7 +400,8 @@
 
         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