##// END OF EJS Templates
dirstate: use `dirstate.change_files` to scope the change in `tag`...
marmoute -
r50931:bb6eaa65 default
parent child Browse files
Show More
@@ -664,8 +664,9 b' def _tag('
664
664
665 repo.invalidatecaches()
665 repo.invalidatecaches()
666
666
667 if b'.hgtags' not in repo.dirstate:
667 with repo.dirstate.changing_files(repo):
668 repo[None].add([b'.hgtags'])
668 if b'.hgtags' not in repo.dirstate:
669 repo[None].add([b'.hgtags'])
669
670
670 m = matchmod.exact([b'.hgtags'])
671 m = matchmod.exact([b'.hgtags'])
671 tagnode = repo.commit(
672 tagnode = repo.commit(
General Comments 0
You need to be logged in to leave comments. Login now