Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 8705:509083f54e52
tag: use match.exact for commit
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 01 Jun 2009 14:11:19 -0500 |
parents | f364cc1d98c4 |
children | 25e9c71b89de |
comparison
equal
deleted
inserted
replaced
8704:27a103df29b7 | 8705:509083f54e52 |
---|---|
181 writetags(fp, names, encoding.fromlocal, prevtags) | 181 writetags(fp, names, encoding.fromlocal, prevtags) |
182 | 182 |
183 if '.hgtags' not in self.dirstate: | 183 if '.hgtags' not in self.dirstate: |
184 self.add(['.hgtags']) | 184 self.add(['.hgtags']) |
185 | 185 |
186 tagnode = self.commit(['.hgtags'], message, user, date, extra=extra) | 186 m = match_.exact(self.root, '', ['.hgtags']) |
187 tagnode = self.commit(None, message, user, date, extra=extra, match=m) | |
187 | 188 |
188 for name in names: | 189 for name in names: |
189 self.hook('tag', node=hex(node), tag=name, local=local) | 190 self.hook('tag', node=hex(node), tag=name, local=local) |
190 | 191 |
191 return tagnode | 192 return tagnode |