Port preflow push max flow alg. from svn -r3516 (#176)
Namely,
- port the files
- apply the migrate script
- apply the unify script
- break the long lines in lemon/preflow.h
- convert the .dim test file to .lgf
- fix compilation problems
5 from mercurial import ui, hg
7 if len(sys.argv)>1 and sys.argv[1] in ["-h","--help"]:
9 This utility just prints the length of the longest path
10 in the revision graph from revison 0 to the current one.
15 r = hg.repository(u, ".")
16 N = r.changectx(".").rev()
19 p=r.changectx(i).parents()
21 p0=lengths[p[0].rev()]
25 p1=lengths[p[1].rev()]
28 lengths[i]=max(p0,p1)+1