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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 25 Apr 2012 19:48:57 +0200
changeset 1811
623b5945226e
parent 1807
9898a95461f1
child 1813
437196b92be6

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	Sun Apr 22 12:01:43 2012 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Wed Apr 25 19:48:57 2012 +0200
@@ -147,7 +147,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