eric6/Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 7429
6983c461550f
parent 7396
c6399bce2c0b
child 7430
79eb37083821
diff -r 362cd1b6f81a -r 6983c461550f eric6/Plugins/VcsPlugins/vcsMercurial/hg.py
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Feb 22 14:27:42 2020 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Feb 23 13:19:20 2020 +0100
@@ -3179,19 +3179,21 @@
         args.append('paths')
         
         output, error = self.__client.runcommand(args)
+        print(output, error)
         
         self.__defaultConfigured = False
         self.__defaultPushConfigured = False
         if output:
             for line in output.splitlines():
+                line = line.strip()
                 if (
                     line.startswith("paths.default=") and
-                    not line.strip().endswith("=")
+                    not line.endswith("=")
                 ):
                     self.__defaultConfigured = True
                 if (
                     line.startswith("paths.default-push=") and
-                    not line.strip().endswith("=")
+                    not line.endswith("=")
                 ):
                     self.__defaultPushConfigured = True
     

eric ide

mercurial