Little improvement to the recent install.py change.

Sun, 26 Apr 2015 16:22:42 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 26 Apr 2015 16:22:42 +0200
changeset 4239
4883661fc427
parent 4238
53bd830433dc
child 4241
545629046c45

Little improvement to the recent install.py change.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sun Apr 26 14:26:44 2015 +0200
+++ b/install.py	Sun Apr 26 16:22:42 2015 +0200
@@ -1325,13 +1325,13 @@
     
     os.rename(fileName, fileName + ".orig")
     try:
-        hgOut = subprocess.check_output(["hg", "identify"])
+        hgOut = subprocess.check_output(["hg", "identify", "-i"])
         if sys.version_info[0] == 3:
             hgOut = hgOut.decode()
     except (FileNotFoundError, subprocess.CalledProcessError):
         hgOut = ""
     if hgOut:
-        hgOut = hgOut.strip().split()[0]
+        hgOut = hgOut.strip()
         if hgOut.endswith("+"):
             hgOut = hgOut[:-1]
         if sys.version_info[0] == 2:

eric ide

mercurial