Beispiel #1
0
 def _checklink(self):
     # Force checks to happen in '.hgcheck' folder so we can identify them
     d = os.path.join(self._root, '.hgcheck')
     try:
         if not os.path.isdir(d):
             os.mkdir(d)
         return util.checklink(d)
     except (IOError, OSError):
         return False
 def _checklink(self):
     # Force checks to happen in '.hgcheck' folder so we can identify them
     d = os.path.join(self._root, '.hgcheck')
     try:
         if not os.path.isdir(d):
             os.mkdir(d)
         return util.checklink(d)
     except (IOError, OSError):
         return False
 def _checklink(self):
     return util.checklink(self._root)
Beispiel #4
0
 def _cansymlink(self):
     return util.checklink(self.base)
Beispiel #5
0
 def _checklink(self):
     return util.checklink(self._root)
Beispiel #6
0
 def _cansymlink(self):
     return util.checklink(self.base)
Beispiel #7
0
         if s[0] != 'r':
             _incdirs(dirs, f)
     self._dirs = dirs
     return self._dirs
 elif name == '_ignore':
     files = [self._join('.hgignore')]
     for name, path in self._ui.configitems("ui"):
         if name == 'ignore' or name.startswith('ignore.'):
             files.append(os.path.expanduser(path))
     self._ignore = ignore.ignore(self._root, files, self._ui.warn)
     return self._ignore
 elif name == '_slash':
     self._slash = self._ui.configbool('ui', 'slash') and os.sep != '/'
     return self._slash
 elif name == '_checklink':
     self._checklink = util.checklink(self._root)
     return self._checklink
 elif name == '_checkexec':
     self._checkexec = util.checkexec(self._root)
     return self._checkexec
 elif name == '_checkcase':
     self._checkcase = not util.checkcase(self._join('.hg'))
     return self._checkcase
 elif name == 'normalize':
     if self._checkcase:
         self.normalize = self._normalize
     else:
         self.normalize = lambda x, y=False: x
     return self.normalize
 else:
     raise AttributeError(name)