Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1212
058fc9ffb0d9
parent 1211
a91a47f2f5e6
child 1237
a6b7e93f649c
equal deleted inserted replaced
1211:a91a47f2f5e6 1212:058fc9ffb0d9
2247 2247
2248 # find the root of the repo 2248 # find the root of the repo
2249 repodir = dname 2249 repodir = dname
2250 while not os.path.isdir(os.path.join(repodir, self.adminDir)): 2250 while not os.path.isdir(os.path.join(repodir, self.adminDir)):
2251 repodir = os.path.dirname(repodir) 2251 repodir = os.path.dirname(repodir)
2252 if repodir == os.sep: 2252 if not repodir or repodir == os.sep:
2253 return 2253 return
2254 2254
2255 cfgFile = os.path.join(repodir, self.adminDir, "hgrc") 2255 cfgFile = os.path.join(repodir, self.adminDir, "hgrc")
2256 if os.path.exists(cfgFile): 2256 if os.path.exists(cfgFile):
2257 self.__iniWatcher.addPath(cfgFile) 2257 self.__iniWatcher.addPath(cfgFile)

eric ide

mercurial