tag: use match.exact for commit
authorMatt Mackall <mpm@selenic.com>
Mon, 01 Jun 2009 14:11:19 -0500
changeset 8705 509083f54e52
parent 8704 27a103df29b7
child 8706 25e9c71b89de
tag: use match.exact for commit
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)