Show More
@@ -109,7 +109,8 b' class localrepository(repo.repository):' | |||||
109 |
|
109 | |||
110 | tag_disallowed = ':\r\n' |
|
110 | tag_disallowed = ':\r\n' | |
111 |
|
111 | |||
112 |
def _tag(self, name, node, message, local, user, date, parent=None |
|
112 | def _tag(self, name, node, message, local, user, date, parent=None, | |
|
113 | extra={}): | |||
113 | use_dirstate = parent is None |
|
114 | use_dirstate = parent is None | |
114 |
|
115 | |||
115 | for c in self.tag_disallowed: |
|
116 | for c in self.tag_disallowed: | |
@@ -134,7 +135,8 b' class localrepository(repo.repository):' | |||||
134 | if use_dirstate and self.dirstate.state('.hgtags') == '?': |
|
135 | if use_dirstate and self.dirstate.state('.hgtags') == '?': | |
135 | self.add(['.hgtags']) |
|
136 | self.add(['.hgtags']) | |
136 |
|
137 | |||
137 |
tagnode = self.commit(['.hgtags'], message, user, date, p1=parent |
|
138 | tagnode = self.commit(['.hgtags'], message, user, date, p1=parent, | |
|
139 | extra=extra) | |||
138 |
|
140 | |||
139 | self.hook('tag', node=hex(node), tag=name, local=local) |
|
141 | self.hook('tag', node=hex(node), tag=name, local=local) | |
140 |
|
142 |
General Comments 0
You need to be logged in to leave comments.
Login now