--- a/mercurial/tags.py Sun Feb 10 14:35:36 2019 -0800
+++ b/mercurial/tags.py Sat Feb 09 22:50:53 2019 -0800
@@ -536,7 +536,7 @@
date: date tuple to use if committing'''
if not local:
- m = matchmod.exact(repo.root, '', ['.hgtags'])
+ m = matchmod.exact(['.hgtags'])
if any(repo.status(match=m, unknown=True, ignored=True)):
raise error.Abort(_('working copy of .hgtags is changed'),
hint=_('please commit .hgtags manually'))
@@ -610,7 +610,7 @@
if '.hgtags' not in repo.dirstate:
repo[None].add(['.hgtags'])
- m = matchmod.exact(repo.root, '', ['.hgtags'])
+ m = matchmod.exact(['.hgtags'])
tagnode = repo.commit(message, user, date, extra=extra, match=m,
editor=editor)