Fixed an issue related to try to monitor a non-existing hgrc file.

Fri, 29 Jul 2011 18:58:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 29 Jul 2011 18:58:41 +0200
changeset 1210
269dccec0c33
parent 1208
2e7445f08612
child 1211
a91a47f2f5e6

Fixed an issue related to try to monitor a non-existing hgrc file.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
diff -r 2e7445f08612 -r 269dccec0c33 Plugins/VcsPlugins/vcsMercurial/hg.py
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Fri Jul 29 18:33:52 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Fri Jul 29 18:58:41 2011 +0200
@@ -2252,7 +2252,8 @@
                 return
         
         cfgFile = os.path.join(repodir, self.adminDir, "hgrc")
-        self.__iniWatcher.addPath(cfgFile)
+        if os.path.exists(cfgFile):
+            self.__iniWatcher.addPath(cfgFile)
     
     def __getExtensionsInfo(self):
         """

eric ide

mercurial