Show More
@@ -571,7 +571,18 def tag(repo, names, node, message, loca | |||||
571 |
|
571 | |||
572 | if not local: |
|
572 | if not local: | |
573 | m = matchmod.exact([b'.hgtags']) |
|
573 | m = matchmod.exact([b'.hgtags']) | |
574 |
|
|
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'), |
General Comments 0
You need to be logged in to leave comments.
Login now