Make chg-len.py independent from the global Mercurial config files
authorAlpar Juttner <alpar@cs.elte.hu>
Sat, 27 Sep 2008 14:04:27 +0200
changeset 284a16cc721259e
parent 283 66bb22401834
child 285 d8dc5acf739b
Make chg-len.py independent from the global Mercurial config files
scripts/chg-len.py
     1.1 --- a/scripts/chg-len.py	Sat Sep 27 13:45:50 2008 +0200
     1.2 +++ b/scripts/chg-len.py	Sat Sep 27 14:04:27 2008 +0200
     1.3 @@ -9,13 +9,14 @@
     1.4  in the revision graph from revison 0 to the current one.
     1.5  """
     1.6      exit(0)
     1.7 -plist = os.popen("hg parents --template='{rev}\n'").readlines()
     1.8 +plist = os.popen("HGRCPATH='' hg parents --template='{rev}\n'").readlines()
     1.9  if len(plist)>1:
    1.10      print "You are in the process of merging"
    1.11      exit(1)
    1.12  PAR = int(plist[0])
    1.13  
    1.14 -f = os.popen("hg log -r 0:tip --template='{rev} {parents}\n'").readlines()
    1.15 +f = os.popen("HGRCPATH='' hg log -r 0:tip --template='{rev} {parents}\n'").\
    1.16 +    readlines()
    1.17  REV = -1
    1.18  lengths=[]
    1.19  for l in f: