Beispiel #1
0
        // @} IFileStorage

        /// <summary>
        /// </summary>
        internal FileStorage(string parentFolder, ProjectKey projectKey,
                             ISynchronizeInvoke synchronizeInvoke, RepositoryAccessor repositoryAccessor, IFileStorageProperties properties)
        {
            Path       = LocalCommitStoragePathFinder.FindPath(parentFolder, projectKey, LocalCommitStorageType.FileStorage);
            ProjectKey = projectKey;
            FileStorageUtils.InitalizeFileStorage(Path, ProjectKey);

            ComparisonCache = new FileStorageComparisonCache(Path, properties.GetComparisonCountToKeep());
            FileCache       = new FileStorageRevisionCache(Path, properties.GetRevisionCountToKeep());
            DiffCache       = new FileStorageDiffCache(Path, this);

            _updater = new FileStorageUpdater(synchronizeInvoke, this, repositoryAccessor, properties);

            _processManager = new GitProcessManager(synchronizeInvoke, Path);
            _commandService = new FileStorageGitCommandService(_processManager, Path, this);

            Trace.TraceInformation(String.Format(
                                       "[FileStorage] Created FileStorage at Path {0} for host {1}, project {2}, ",
                                       Path, projectKey.HostName, projectKey.ProjectName));
        }
 internal FileStorageFullContextDiffProvider(IGitCommandService commandService,
                                             FileStorageComparisonCache comparisonCache)
 {
     _commandService  = commandService;
     _comparisonCache = comparisonCache;
 }