Mercurial > hg-stable
comparison mercurial/hg.py @ 216:201115f2859b
hg annotate: actually annotate the given version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hg annotate: actually annotate the given version
Bug spotted by Edouard Gomez
manifest hash: 3e29a7a8eb70b92483958ceffe94045a82899c61
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCnkF7ywK+sNU5EO8RAvvnAJsFjkpFdzQ+cPyrvQE25V16/z3dBQCeIyzf
S/N2S/RcfFd9Ca56Xvf/jAM=
=0qMq
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 01 Jun 2005 15:15:07 -0800 |
parents | d2badbd7d1ad |
children | e6d6497a6331 |
comparison
equal
deleted
inserted
replaced
215:9ff5a78d0c45 | 216:201115f2859b |
---|---|
40 else: | 40 else: |
41 new += child[s:t] | 41 new += child[s:t] |
42 return new | 42 return new |
43 | 43 |
44 # find all ancestors | 44 # find all ancestors |
45 needed = {} | 45 needed = {node:1} |
46 visit = [node] | 46 visit = [node] |
47 while visit: | 47 while visit: |
48 n = visit.pop(0) | 48 n = visit.pop(0) |
49 for p in self.parents(n): | 49 for p in self.parents(n): |
50 if p not in needed: | 50 if p not in needed: |