Fixed an issue in the Mercurial interface causing a warning. if no .hgrc file exists. 5_2_x

Wed, 25 Apr 2012 19:48:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 25 Apr 2012 19:48:57 +0200
branch
5_2_x
changeset 1812
790aa44f5dcc
parent 1810
9d6ccebbf8ba
child 1815
6ed2ac61a108

Fixed an issue in the Mercurial interface causing a warning. if no .hgrc file exists.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Wed Apr 25 19:39:26 2012 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Wed Apr 25 19:48:57 2012 +0200
@@ -145,7 +145,9 @@
         
         self.__iniWatcher = QFileSystemWatcher(self)
         self.__iniWatcher.fileChanged.connect(self.__iniFileChanged)
-        self.__iniWatcher.addPath(getConfigPath())
+        cfgFile = getConfigPath()
+        if os.path.exists(cfgFile):
+            self.__iniWatcher.addPath(cfgFile)
         
         self.__client = None
         

eric ide

mercurial