mercurial/tags.py
changeset 43652 ba5c39b9324c
parent 43543 2c3afd083e45
child 43689 f7d7f9d23a7a
equal deleted inserted replaced
43651:aeed2f106213 43652:ba5c39b9324c
   569 
   569 
   570     date: date tuple to use if committing'''
   570     date: date tuple to use if committing'''
   571 
   571 
   572     if not local:
   572     if not local:
   573         m = matchmod.exact([b'.hgtags'])
   573         m = matchmod.exact([b'.hgtags'])
   574         if any(repo.status(match=m, unknown=True, ignored=True)):
   574         st = repo.status(match=m, unknown=True, ignored=True)
       
   575         if any(
       
   576             (
       
   577                 st.modified,
       
   578                 st.added,
       
   579                 st.removed,
       
   580                 st.deleted,
       
   581                 st.unknown,
       
   582                 st.ignored,
       
   583                 st.clean,
       
   584             )
       
   585         ):
   575             raise error.Abort(
   586             raise error.Abort(
   576                 _(b'working copy of .hgtags is changed'),
   587                 _(b'working copy of .hgtags is changed'),
   577                 hint=_(b'please commit .hgtags manually'),
   588                 hint=_(b'please commit .hgtags manually'),
   578             )
   589             )
   579 
   590