tag: properly abort if an unknown or ignored .hgtags is present
authorMatt Mackall <mpm@selenic.com>
Thu, 02 Oct 2014 18:37:12 -0500
changeset 22678 bf0b5bfc24b9
parent 22677 cbb4414a5603
child 22679 aa8ecc199892
tag: properly abort if an unknown or ignored .hgtags is present This was a regression introduced by 4faaa0535ea7 in 2008.
mercurial/localrepo.py
--- 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)'))