1 # Feed this with git rev-list HEAD --parents
5 for line
in sys
.stdin
.readlines():
7 parents
[commits
[0]] = commits
[1:]
11 for commit
in parents
:
21 sequence_num
[c
] = 1 + sequence_num
[p
]
28 (num
, commit
) = max((num
, commit
) for (commit
, num
) in sequence_num
.items())
29 print('%s is a sequence of %d patches' % (commit
, num
))