# HG changeset patch # User Alpar Juttner # Date 1222517067 -7200 # Node ID a16cc721259e08f1cf3a086f8e78c01582cf02a0 # Parent 66bb224018340dc474574be4270b18b30b230f9a Make chg-len.py independent from the global Mercurial config files diff -r 66bb22401834 -r a16cc721259e scripts/chg-len.py --- a/scripts/chg-len.py Sat Sep 27 13:45:50 2008 +0200 +++ b/scripts/chg-len.py Sat Sep 27 14:04:27 2008 +0200 @@ -9,13 +9,14 @@ in the revision graph from revison 0 to the current one. """ exit(0) -plist = os.popen("hg parents --template='{rev}\n'").readlines() +plist = os.popen("HGRCPATH='' hg parents --template='{rev}\n'").readlines() if len(plist)>1: print "You are in the process of merging" exit(1) PAR = int(plist[0]) -f = os.popen("hg log -r 0:tip --template='{rev} {parents}\n'").readlines() +f = os.popen("HGRCPATH='' hg log -r 0:tip --template='{rev} {parents}\n'").\ + readlines() REV = -1 lengths=[] for l in f: