def sync(self, gitcmd=None, logger=None, quickcopy=False): if not quickcopy: ret = self._sync(gitcmd=gitcmd, logger=logger) else: self._timestamp = _timestamp(self.src) print self.sccsp.get_patterns() FileUtils.rmtree(self.dest, ignore_list=self.sccsp.get_patterns()) FileUtils.copy_files(self.src, self.dest) if gitcmd: ret = gitcmd.add('--all', self.dest) return ret
def sync(self, logger=None, quickcopy=False, symlinks=True, scmtool=None): if not quickcopy: ret = self._sync(logger=logger, symlinks=symlinks, scmtool=scmtool) else: self._timestamp = FileUtils.last_modified(self.src) FileUtils.rmtree(self.dest, ignore_list=self.sccsp.get_patterns(), scmtool=scmtool) ret = FileUtils.copy_files(self.src, self.dest, symlinks=symlinks, scmtool=scmtool) return ret