tag: properly abort if an unknown or ignored .hgtags is present
This was a regression introduced by
4faaa0535ea7 in 2008.
--- a/mercurial/localrepo.py Wed Oct 01 12:50:18 2014 -0700
+++ b/mercurial/localrepo.py Thu Oct 02 18:37:12 2014 -0500
@@ -574,7 +574,7 @@
date: date tuple to use if committing'''
if not local:
- for x in self.status()[:5]:
+ for x in self.status(unknown=True, ignored=True):
if '.hgtags' in x:
raise util.Abort(_('working copy of .hgtags is changed '
'(please commit .hgtags manually)'))