Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 4482:99f411ba0380
use .extend instead of .append in readtags
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 04 Jun 2007 00:24:48 -0300 |
parents | 1a63b44f90c9 |
children | 22ebd6ee5672 |
comparison
equal
deleted
inserted
replaced
4481:50a46ae14efb | 4482: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(): |