Patchwork D7404: tags: use field names instead of field numbers on scmutil.status

login
register
mail settings
Submitter phabricator
Date Nov. 15, 2019, 3:42 a.m.
Message ID <4cbe362d78facfcd3d2b236705ba894c@localhost.localdomain>
Download mbox | patch
Permalink /patch/43244/
State Not Applicable
Headers show

Comments

phabricator - Nov. 15, 2019, 3:42 a.m.
Closed by commit rHGba5c39b9324c: tags: use field names instead of field numbers on scmutil.status (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7404?vs=18094&id=18132

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7404/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7404

AFFECTED FILES
  mercurial/tags.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/tags.py b/mercurial/tags.py
--- a/mercurial/tags.py
+++ b/mercurial/tags.py
@@ -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'),