scripts/chg-len.py
changeset 632 0286cb1ac78d
parent 376 4b2382fd80ef
child 733 abf31e4af617
equal deleted inserted replaced
2:d829ebcbeb7e 3:75af377585f4
     1 #! /usr/bin/env python
     1 #! /usr/bin/env python
     2 
     2 
     3 import sys
     3 import sys
     4 
     4 
     5 from mercurial import ui, hg
     5 from mercurial import ui, hg
       
     6 from mercurial import util
       
     7 
       
     8 util.rcpath = lambda : []
     6 
     9 
     7 if len(sys.argv)>1 and sys.argv[1] in ["-h","--help"]:
    10 if len(sys.argv)>1 and sys.argv[1] in ["-h","--help"]:
     8     print """
    11     print """
     9 This utility just prints the length of the longest path
    12 This utility just prints the length of the longest path
    10 in the revision graph from revison 0 to the current one.
    13 in the revision graph from revison 0 to the current one.