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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 22 Apr 2019 10:38:32 +0200
branch
Variables Viewer
changeset 6972
bb4d5692f966
parent 6971
77cf9a30562d
child 6978
720247f98e1f

HgStatusMonitorThread: fixed an issue handling branches with spaces in their name.
(grafted from cf9c2dc3f3cca5460eadd0d5305005da73dd3ddd)

eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py file | annotate | diff | comparison | revisions
diff -r 77cf9a30562d -r bb4d5692f966 eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py	Mon Apr 22 10:46:09 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