Wed, 25 Apr 2012 19:48:57 +0200
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