Mercurial > hg
comparison tests/test-revlog-ancestry.py @ 6923:ebf1462f2145
strip trailing whitespace, replace tabs by spaces
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 21 Aug 2008 11:35:17 +0200 |
parents | c7cc40fd74f6 |
children | 284fda4cd093 |
comparison
equal
deleted
inserted
replaced
6922:1ec2d227a521 | 6923:ebf1462f2145 |
---|---|
47 addcommit("I", 8) | 47 addcommit("I", 8) |
48 | 48 |
49 # Ancestors | 49 # Ancestors |
50 print 'Ancestors of 5' | 50 print 'Ancestors of 5' |
51 for r in repo.changelog.ancestors(5): | 51 for r in repo.changelog.ancestors(5): |
52 print r, | 52 print r, |
53 | 53 |
54 print '\nAncestors of 6 and 5' | 54 print '\nAncestors of 6 and 5' |
55 for r in repo.changelog.ancestors(6, 5): | 55 for r in repo.changelog.ancestors(6, 5): |
56 print r, | 56 print r, |
57 | 57 |
58 print '\nAncestors of 5 and 4' | 58 print '\nAncestors of 5 and 4' |
59 for r in repo.changelog.ancestors(5, 4): | 59 for r in repo.changelog.ancestors(5, 4): |
60 print r, | 60 print r, |
61 | 61 |
62 # Descendants | 62 # Descendants |
63 print '\n\nDescendants of 5' | 63 print '\n\nDescendants of 5' |
64 for r in repo.changelog.descendants(5): | 64 for r in repo.changelog.descendants(5): |
65 print r, | 65 print r, |
66 | 66 |
67 print '\nDescendants of 5 and 3' | 67 print '\nDescendants of 5 and 3' |
68 for r in repo.changelog.descendants(5, 3): | 68 for r in repo.changelog.descendants(5, 3): |
69 print r, | 69 print r, |
70 | 70 |
71 print '\nDescendants of 5 and 4' | 71 print '\nDescendants of 5 and 4' |
72 for r in repo.changelog.descendants(5, 4): | 72 for r in repo.changelog.descendants(5, 4): |
73 print r, | 73 print r, |
74 | 74 |