# HG changeset patch # User Brendan Cully # Date 1184137455 25200 # Node ID fc389dcc33f55d4d2542f8f0727030132631b7a2 # Parent 6dc0094c0827641189eb46e9447255c925a392f1 Export extra in _tag so convert can set the branch of a tag diff -r 6dc0094c0827 -r fc389dcc33f5 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)