/// <summary> /// Process a clear static directory response. /// </summary> public override void Process() { string localPath = this.ReadLine(); string reposPath = this.ReadLine(); Manager manager = new Manager (Services.Repository.WorkingPath); manager.AddRepository (Services.Repository, localPath, reposPath); manager.AddRoot (Services.Repository, localPath, reposPath); PathTranslator pathTranslator = new PathTranslator (Services.Repository, reposPath); Factory factory = new Factory(); Entry entry = (Entry)factory.CreateCvsObject(pathTranslator.CurrentDir, Entry.FILE_NAME, Entry.CreateEntry(pathTranslator.CurrentDir).FileContents); // the root module directory does not get a cvs Entries line. // TODO: There has to be a cleaner way to do this... if (Services.Repository.WorkingPath.Length <= entry.Path.Length) { manager.AddEntry(entry); } Services.ResponseMessageEvents.SendResponseMessage( String.Format("Updating {0}", RemoveTrailingSlash(localPath)), this.GetType()); }