mercurial/commands.py
changeset 1734 9488d53233b5
parent 1732 d3e6da334b85
child 1736 50de0887bbcd
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2117,7 +2117,7 @@ def tag(ui, repo, name, rev_=None, **opt
             raise util.Abort(_("%s cannot be used in a tag name") % repr(c))
 
     repo.hook('pretag', throw=True, node=r, tag=name,
-              local=not not opts['local'])
+              local=int(not not opts['local']))
 
     if opts['local']:
         repo.opener("localtags", "a").write("%s %s\n" % (r, name))