HgStatusMonitorThread: fixed an issue handling branches with spaces in their name.

Mon, 22 Apr 2019 10:38:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 22 Apr 2019 10:38:32 +0200
changeset 6970
cf9c2dc3f3cc
parent 6968
c634f51e40ec
child 6973
be049fb6426d

HgStatusMonitorThread: fixed an issue handling branches with spaces in their name.

eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py file | annotate | diff | comparison | revisions
diff -r c634f51e40ec -r cf9c2dc3f3cc eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py	Sun Apr 21 17:27:52 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py	Mon Apr 22 10:38:32 2019 +0200
@@ -188,7 +188,7 @@
             # ignore errors
             return ""
         
-        globalRev, localRev, branch = output.splitlines()[0].split()
+        globalRev, localRev, branch = output.splitlines()[0].split(None, 2)
         if globalRev.endswith("+"):
             globalRev = globalRev[:-1]
         if localRev.endswith("+"):

eric ide

mercurial