changeset 4864:fc389dcc33f5

Export extra in _tag so convert can set the branch of a tag
author Brendan Cully <brendan@kublai.com>
date Wed, 11 Jul 2007 00:04:15 -0700
parents 6dc0094c0827
children 76d4d031cc50
files mercurial/localrepo.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)