Esempio n. 1
0
        public DiffProcessor(IWorkerConfiguration workerConfig, ISynchronization sync, ISvc source, ISvc target, IBlackMirrorHttpClient httpClient, ISyncLogger syncLogger, IUser defaultPushUser)
        {
            //this.mirror = mirror;
            this.sync            = sync;
            this.source          = source;
            this.target          = target;
            this.httpClient      = httpClient;
            this.syncLogger      = syncLogger;
            this.defaultPushUser = defaultPushUser;
            this.ignoredFiles    = sync.Mirror.IgnoredFiles?.ToList() ?? new List <string>();
            this.ignoredFiles.AddRange(new[]
            {
                @"^\.svn\\?.*$",
                @"(^\.git\\.*$)|(^\.git$)",
                @"^.*\\node_modules\\.*$",
                @"^.*\\bower_components\\.*$",
                @"^packages\\?.*$",
                @"^.*\.dll$",
                @"^.*\.pdb",
                @"^.*\.nupkg",
                @"^.*\.tar",
                @"^.*\.tgz",
                @"^.*\.jar",
                @"^.*\.exe",
            });

            this.retriever            = new UserRetriever(workerConfig);
            this.timeoutMaxRetryCount = workerConfig.TimeoutMaxRetryCount;
        }
Esempio n. 2
0
 public RepositoryComparer(IBlackMirrorHttpClient httpClient, IMirror mirror, IEnumerable <IRevision> sourceRepositoryLog, IEnumerable <IRevision> targetRepositoryLog)
 {
     this.httpClient          = httpClient;
     this.mirror              = mirror;
     this.sourceRepositoryLog = sourceRepositoryLog.ToList();
     this.targetRepositoryLog = targetRepositoryLog.ToList();
 }
Esempio n. 3
0
 public SyncHandler(IWorkerConfiguration workerConfig, IBlackMirrorHttpClient httpClient, ISyncLogger syncLogger)
 {
     this.workerConfig = workerConfig;
     this.httpClient   = httpClient;
     this.syncLogger   = syncLogger;
 }