comparison mercurial/ancestor.py @ 3673:eb0b4a2d70a9

white space and line break cleanups
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 17 Nov 2006 08:06:54 +0100
parents b1db258e875c
children
comparison
equal deleted inserted replaced
3672:e8730b5b8a32 3673:eb0b4a2d70a9
49 for p in pfunc(n): 49 for p in pfunc(n):
50 heapq.heappush(h, (depth[p], p)) 50 heapq.heappush(h, (depth[p], p))
51 51
52 def generations(vertex): 52 def generations(vertex):
53 sg, s = None, {} 53 sg, s = None, {}
54 for g,v in ancestors(vertex): 54 for g, v in ancestors(vertex):
55 if g != sg: 55 if g != sg:
56 if sg: 56 if sg:
57 yield sg, s 57 yield sg, s
58 sg, s = g, {v:1} 58 sg, s = g, {v:1}
59 else: 59 else: