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) |