mercurial/tags.py
changeset 50036 bb6eaa65d12a
parent 49580 08fe5c4d4471
child 50938 f02b62b7b056
equal deleted inserted replaced
50035:e356e8b65d70 50036:bb6eaa65d12a
   662 
   662 
   663     fp.close()
   663     fp.close()
   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(
   672         message, user, date, extra=extra, match=m, editor=editor
   673         message, user, date, extra=extra, match=m, editor=editor
   673     )
   674     )