mercurial/tags.py
changeset 43117 8ff1ecfadcd1
parent 43106 d783f945a701
child 43543 2c3afd083e45
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
   591     branches = repo.branchmap()
   591     branches = repo.branchmap()
   592     for name in names:
   592     for name in names:
   593         repo.hook(b'pretag', throw=True, node=hex(node), tag=name, local=local)
   593         repo.hook(b'pretag', throw=True, node=hex(node), tag=name, local=local)
   594         if name in branches:
   594         if name in branches:
   595             repo.ui.warn(
   595             repo.ui.warn(
   596                 _(b"warning: tag %s conflicts with existing" b" branch name\n")
   596                 _(b"warning: tag %s conflicts with existing branch name\n")
   597                 % name
   597                 % name
   598             )
   598             )
   599 
   599 
   600     def writetags(fp, names, munge, prevtags):
   600     def writetags(fp, names, munge, prevtags):
   601         fp.seek(0, io.SEEK_END)
   601         fp.seek(0, io.SEEK_END)