[Lemon-commits] Alpar Juttner: Make chg-len.py independent from ...
Lemon HG
hg at lemon.cs.elte.hu
Sun Sep 28 11:15:12 CEST 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/a16cc721259e
changeset: 284:a16cc721259e
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Sat Sep 27 14:04:27 2008 +0200
description:
Make chg-len.py independent from the global Mercurial config files
diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
scripts/chg-len.py | 5 +++--
diffs (20 lines):
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:
More information about the Lemon-commits
mailing list