changeset 8705:509083f54e52

tag: use match.exact for commit
author Matt Mackall <mpm@selenic.com>
date Mon, 01 Jun 2009 14:11:19 -0500
parents 27a103df29b7
children 25e9c71b89de
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)