# HG changeset patch # User Matt Mackall # Date 1243883479 18000 # Node ID 509083f54e526a70750a2f1e495d772ae16b57a1 # Parent 27a103df29b7428de8f4aae205935514492ed84f tag: use match.exact for commit diff -r 27a103df29b7 -r 509083f54e52 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Jun 01 13:51:21 2009 -0500 +++ b/mercurial/localrepo.py Mon Jun 01 14:11:19 2009 -0500 @@ -183,7 +183,8 @@ if '.hgtags' not in self.dirstate: self.add(['.hgtags']) - tagnode = self.commit(['.hgtags'], message, user, date, extra=extra) + m = match_.exact(self.root, '', ['.hgtags']) + tagnode = self.commit(None, message, user, date, extra=extra, match=m) for name in names: self.hook('tag', node=hex(node), tag=name, local=local)