Export extra in _tag so convert can set the branch of a tag
authorBrendan Cully <brendan@kublai.com>
Wed, 11 Jul 2007 00:04:15 -0700
changeset 4864 fc389dcc33f5
parent 4863 6dc0094c0827
child 4865 76d4d031cc50
Export extra in _tag so convert can set the branch of a tag
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Tue Jul 10 10:06:24 2007 -0700
+++ b/mercurial/localrepo.py	Wed Jul 11 00:04:15 2007 -0700
@@ -109,7 +109,8 @@
 
     tag_disallowed = ':\r\n'
 
-    def _tag(self, name, node, message, local, user, date, parent=None):
+    def _tag(self, name, node, message, local, user, date, parent=None,
+             extra={}):
         use_dirstate = parent is None
 
         for c in self.tag_disallowed:
@@ -134,7 +135,8 @@
         if use_dirstate and self.dirstate.state('.hgtags') == '?':
             self.add(['.hgtags'])
 
-        tagnode = self.commit(['.hgtags'], message, user, date, p1=parent)
+        tagnode = self.commit(['.hgtags'], message, user, date, p1=parent,
+                              extra=extra)
 
         self.hook('tag', node=hex(node), tag=name, local=local)