mercurial/tags.py
changeset 43652 ba5c39b9324c
parent 43543 2c3afd083e45
child 43689 f7d7f9d23a7a
--- a/mercurial/tags.py	Thu Nov 14 15:28:34 2019 -0500
+++ b/mercurial/tags.py	Thu Nov 14 15:28:44 2019 -0500
@@ -571,7 +571,18 @@
 
     if not local:
         m = matchmod.exact([b'.hgtags'])
-        if any(repo.status(match=m, unknown=True, ignored=True)):
+        st = repo.status(match=m, unknown=True, ignored=True)
+        if any(
+            (
+                st.modified,
+                st.added,
+                st.removed,
+                st.deleted,
+                st.unknown,
+                st.ignored,
+                st.clean,
+            )
+        ):
             raise error.Abort(
                 _(b'working copy of .hgtags is changed'),
                 hint=_(b'please commit .hgtags manually'),