mercurial/localrepo.py
changeset 4494 99f411ba0380
parent 4415 1a63b44f90c9
child 4497 22ebd6ee5672
equal deleted inserted replaced
4493:50a46ae14efb 4494:99f411ba0380
   305                 an, ah = nh
   305                 an, ah = nh
   306                 bn, bh = globaltags[k]
   306                 bn, bh = globaltags[k]
   307                 if bn != an and an in bh and \
   307                 if bn != an and an in bh and \
   308                    (bn not in ah or len(bh) > len(ah)):
   308                    (bn not in ah or len(bh) > len(ah)):
   309                     an = bn
   309                     an = bn
   310                 ah.append([n for n in bh if n not in ah])
   310                 ah.extend([n for n in bh if n not in ah])
   311                 globaltags[k] = an, ah
   311                 globaltags[k] = an, ah
   312 
   312 
   313         # read the tags file from each head, ending with the tip
   313         # read the tags file from each head, ending with the tip
   314         f = None
   314         f = None
   315         for rev, node, fnode in self._hgtagsnodes():
   315         for rev, node, fnode in self._hgtagsnodes():