private static Mks CreateMks(string xml, IHistoryParser historyParser, ProcessExecutor executor) { Mks newMks = new Mks(historyParser, executor); NetReflector.Read(xml, newMks); return(newMks); }
/// <summary> /// Initializes a new instance of the <see cref="Mks" /> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> /// <remarks></remarks> public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { this.Executable = DefaultExecutable; this.AutoGetSource = DefaultAutoGetSource; this.AutoDisconnect = DefaultAutoDisconnect; this.Port = DefaultPort; }
public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { executable = "si.exe"; port = 8722; autoGetSource = false; }
/// <summary> /// Initializes a new instance of the <see cref="RobocopySourceControl" /> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> /// <remarks></remarks> public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { this.Executable = "C:\\Windows\\System32\\robocopy.exe"; this.AutoGetSource = false; this.WorkingDirectory = string.Empty; this.AdditionalArguments = string.Empty; }
/// <summary> /// Create an instance of the source control integration. /// </summary> public ExternalSourceControl(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { this.ArgString = string.Empty; this.AutoGetSource = false; this.EnvironmentVariables = new EnvironmentVariable[0]; this.LabelOnSuccess = false; }
/// <summary> /// Initializes a new instance of the <see cref="Vss" /> class. /// </summary> /// <param name="locale">The locale.</param> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <param name="registry">The registry.</param> /// <remarks></remarks> public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor) { this.registry = registry; this.locale = locale; this.Project = DefaultProject; this.ApplyLabel = false; this.AutoGetSource = true; this.AlwaysGetLatest = false; this.CleanCopy = true; }
protected void SetUp() { mockHistoryParser = new DynamicMock(typeof(IHistoryParser)); CreateProcessExecutorMock(BitKeeper.DefaultExecutable); ProcessExecutor executor = (ProcessExecutor)mockProcessExecutor.MockInstance; IHistoryParser parser = (IHistoryParser)mockHistoryParser.MockInstance; bitkeeper = new BitKeeper(parser, executor); from = new DateTime(2001, 1, 21, 20, 0, 0); to = from.AddDays(1); }
/// <summary> /// Initializes a new instance of the <see cref="Git" /> class. /// </summary> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <param name="fileSystem">The file system.</param> /// <param name="fileDirectoryDeleter">The file directory deleter.</param> /// <remarks></remarks> public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter) : base(historyParser, executor) { _fileSystem = fileSystem; _fileDirectoryDeleter = fileDirectoryDeleter; this.AutoGetSource = true; this.Executable = "git"; this.Branch = "master"; this.TagCommitMessage = "CCNet Build {0}"; this.TagNameFormat = "CCNet-Build-{0}"; }
protected void SetUp() { mockHistoryParser = new Mock <IHistoryParser>(); CreateProcessExecutorMock(BitKeeper.DefaultExecutable); ProcessExecutor executor = (ProcessExecutor)mockProcessExecutor.Object; IHistoryParser parser = (IHistoryParser)mockHistoryParser.Object; bitkeeper = new BitKeeper(parser, executor); from = new DateTime(2001, 1, 21, 20, 0, 0); to = from.AddDays(1); }
/// <summary> /// Initializes a new instance of the <see cref="PlasticSCM" /> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> /// <remarks></remarks> public PlasticSCM(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { this.AutoGetSource = true; this.Executable = DefaultPlasticExecutable; this.Branch = string.Empty; this.Repository = string.Empty; this.WorkingDirectory = string.Empty; this.LabelOnSuccess = false; this.LabelPrefix = "ccver-"; this.Forced = false; }
/// <summary> /// Initializes a new instance of the <see cref="Pvcs" /> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> /// <remarks></remarks> public Pvcs(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { this.Executable = "pcli.exe"; this.Username = string.Empty; this.Password = string.Empty; this.WorkingDirectory = string.Empty; this.Workspace = "/@/RootWorkspace"; this.Recursive = true; this.LabelOnSuccess = false; this.AutoGetSource = true; this.ManuallyAdjustForDaylightSavings = false; }
/// <summary> /// Initializes a new instance of the <see cref="Alienbrain" /> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> /// <param name="registry">The registry.</param> /// <remarks></remarks> public Alienbrain(IHistoryParser parser, ProcessExecutor executor, IRegistry registry) : base(parser, executor) { this.registry = registry; this.Server = string.Empty; this.Database = string.Empty; this.Username = string.Empty; this.Password = string.Empty; this.Branch = string.Empty; this.Project = string.Empty; this.AutoGetSource = true; this.WorkingDirectory = string.Empty; this.LabelOnSuccess = false; }
/// <summary> /// Initializes a new instance of the <see cref="Git" /> class. /// </summary> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <param name="fileSystem">The file system.</param> /// <param name="fileDirectoryDeleter">The file directory deleter.</param> /// <remarks></remarks> public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter) : base(historyParser, executor) { _fileSystem = fileSystem; _fileDirectoryDeleter = fileDirectoryDeleter; this.AutoGetSource = true; this.CleanUntrackedFiles = true; this.Executable = "git"; this.Branch = "master"; this.TagCommitMessage = "CCNet Build {0}"; this.TagNameFormat = "CCNet-Build-{0}"; this.MaxAmountOfModificationsToFetch = 100; }
/// <summary> /// Create an instance of the source control integration. /// </summary> public AccuRev(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { if (LogIn & ((AccuRevPrincipal == null) || (AccuRevPassword == null))) { Log.Error("login=true requires principal= and password= to be specified."); } this.AutoGetSource = false; this.Executable = "accurev.exe"; this.AccuRevHomeDir = null; this.LabelOnSuccess = false; this.LogIn = false; this.AccuRevPassword = null; this.AccuRevPrincipal = null; this.Workspace = string.Empty; }
public VaultVersionChecker(IHistoryParser historyParser, ProcessExecutor executor, EForcedVaultVersion forceVersion) { _forcedVaultVersion = forceVersion; switch ( forceVersion ) { case EForcedVaultVersion.Vault3: _vaultSourceControl = new Vault3(this, historyParser, executor); break; case EForcedVaultVersion.Vault317: _vaultSourceControl = new Vault317(this, historyParser, executor); break; default: Debug.Fail("You have to force a version of Vault from the unit tests."); break; } }
/// <summary> /// Initializes a new instance of the <see cref="Svn" /> class. /// </summary> /// <param name="executor">The executor.</param> /// <param name="parser">The parser.</param> /// <param name="fileSystem">The file system.</param> /// <remarks></remarks> public Svn(ProcessExecutor executor, IHistoryParser parser, IFileSystem fileSystem) : base(parser, executor) { this.fileSystem = fileSystem; this.AuthCaching = AuthCachingMode.None; this.Executable = DefaultExecutable; this.TagOnSuccess = false; this.TagWorkingCopy = false; this.DeleteObstructions = false; this.AutoGetSource = true; this.CheckExternals = false; this.CheckExternalsRecursive = true; this.CleanCopy = false; this.Revert = false; this.CleanUp = false; }
public void SetUp() { sandboxRoot = TempFileUtil.GetTempPath("MksSandBox"); mockHistoryParserWrapper = new DynamicMock(typeof(IHistoryParser)); mockHistoryParser = (IHistoryParser)mockHistoryParserWrapper.MockInstance; mksHistoryParserWrapper = new DynamicMock(typeof(MksHistoryParser)); mksHistoryParser = (MksHistoryParser)mksHistoryParserWrapper.MockInstance; mockExecutorWrapper = new DynamicMock(typeof(ProcessExecutor)); mockProcessExecutor = (ProcessExecutor)mockExecutorWrapper.MockInstance; mockIntegrationResult = new DynamicMock(typeof(IIntegrationResult)); integrationResult = (IIntegrationResult)mockIntegrationResult.MockInstance; }
public void SetUp() { sandboxRoot = TempFileUtil.GetTempPath("MksSandBox"); mockHistoryParserWrapper = new DynamicMock(typeof (IHistoryParser)); mockHistoryParser = (IHistoryParser) mockHistoryParserWrapper.MockInstance; mksHistoryParserWrapper = new DynamicMock(typeof (MksHistoryParser)); mksHistoryParser = (MksHistoryParser) mksHistoryParserWrapper.MockInstance; mockExecutorWrapper = new DynamicMock(typeof (ProcessExecutor)); mockProcessExecutor = (ProcessExecutor) mockExecutorWrapper.MockInstance; mockIntegrationResult = new DynamicMock(typeof (IIntegrationResult)); integrationResult = (IIntegrationResult) mockIntegrationResult.MockInstance; }
public void SetUp() { sandboxRoot = TempFileUtil.GetTempPath("MksSandBox"); mockHistoryParserWrapper = new Mock <IHistoryParser>(); mockHistoryParser = (IHistoryParser)mockHistoryParserWrapper.Object; mksHistoryParserWrapper = new Mock <MksHistoryParser>(); mksHistoryParser = (MksHistoryParser)mksHistoryParserWrapper.Object; mockExecutorWrapper = new Mock <ProcessExecutor>(); mockProcessExecutor = (ProcessExecutor)mockExecutorWrapper.Object; mockIntegrationResult = new Mock <IIntegrationResult>(); integrationResult = (IIntegrationResult)mockIntegrationResult.Object; }
/// <summary> /// Initializes a new instance of the <see cref="Cvs" /> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> /// <param name="fileSystem">The file system.</param> /// <param name="executionEnvironment">The execution environment.</param> /// <remarks></remarks> public Cvs(IHistoryParser parser, ProcessExecutor executor, IFileSystem fileSystem, IExecutionEnvironment executionEnvironment) : base(parser, executor) { this.fileSystem = fileSystem; this.executionEnvironment = executionEnvironment; this.Executable = DefaultCvsExecutable; this.CvsRoot = string.Empty; this.WorkingDirectory = string.Empty; this.LabelOnSuccess = false; this.RestrictLogins = string.Empty; this.UrlBuilder = new NullUrlBuilder(); this.AutoGetSource = true; this.CleanCopy = true; this.ForceCheckout = false; this.Branch = string.Empty; this.TagPrefix = "ver-"; }
public VaultVersionChecker(IHistoryParser historyParser, ProcessExecutor executor, EForcedVaultVersion forceVersion) { _forcedVaultVersion = forceVersion; switch (forceVersion) { case EForcedVaultVersion.Vault3: _vaultSourceControl = new Vault3(this, historyParser, executor); break; case EForcedVaultVersion.Vault317: _vaultSourceControl = new Vault317(this, historyParser, executor); break; default: Debug.Fail("You have to force a version of Vault from the unit tests."); break; } }
/// <summary> /// Initializes a new instance of the <see cref="Mercurial"/> class. /// </summary> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <param name="fileSystem">The file system.</param> /// <param name="fileDirectoryDeleter">The file directory deleter.</param> public Mercurial(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter) : base(historyParser, executor) { Executable = DefaultExecutable; AutoGetSource = true; // Do not initialize the branch because the default branch does not exist before the first commit //Branch = DefaultBranch; CommitterName = DefaultCommitterName; CommitModifications = false; CommitUntracked = false; ModificationsCommitMessage = DefaultModificationsCommitMessage; MultipleHeadsFail = false; TagOnSuccess = false; TagNameFormat = DefaultTagNameFormat; TagCommitMessage = DefaultTagCommitMessage; PurgeModifications = false; PushModifications = false; RevertModifications = false; _fileSystem = fileSystem; _fileDirectoryDeleter = fileDirectoryDeleter; }
public BitKeeper(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { }
private static Mks CreateMks(string xml, IHistoryParser historyParser, ProcessExecutor executor) { Mks newMks = new Mks(historyParser, executor); NetReflector.Read(xml, newMks); return newMks; }
public Pvcs(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { }
/// <summary> /// Initializes a new instance of the <see cref="Vault3" /> class. /// </summary> /// <param name="versionCheckerShim">The version checker shim.</param> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <remarks></remarks> public Vault3(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor) { this._shim = versionCheckerShim; this.Timeout = _shim.Timeout; }
public ProcessSourceControl(IHistoryParser historyParser) : this(historyParser, new ProcessExecutor()) { }
public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { }
public Svn(ProcessExecutor executor, IHistoryParser parser) : base(parser, executor) { }
public Svn(ProcessExecutor executor, IHistoryParser parser, IFileSystem fileSystem) : base(parser, executor) { this.fileSystem = fileSystem; this.AuthCaching = AuthCachingMode.None; this.Executable = DefaultExecutable; this.TagOnSuccess = false; this.DeleteObstructions = false; this.AutoGetSource = true; this.CheckExternals = false; this.CheckExternalsRecursive = true; this.CleanCopy = false; this.Revert = false; this.CleanUp = false; }
/// <summary> /// Initializes a new instance of the <see cref="BitKeeper"/> class. /// </summary> /// <param name="parser">The parser.</param> /// <param name="executor">The executor.</param> public BitKeeper(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { this.InitialiseDefaults(); }
/// <summary> /// Initializes a new instance of the <see cref="Vsts" /> class. /// </summary> /// <param name="executor">The executor.</param> /// <param name="parser">The parser.</param> /// <param name="registry">The registry.</param> /// <remarks></remarks> public Vsts(ProcessExecutor executor, IHistoryParser parser, IRegistry registry) : base(parser, executor) { this.registry = registry; this.executor = executor; }
/// <summary> /// Called only by the unit tests, sets up as appropriate. /// </summary> /// <param name="versionCheckerShim"></param> /// <param name="historyParser"></param> /// <param name="executor"></param> public Vault317(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(versionCheckerShim, historyParser, executor) { }
public ProcessSourceControl(IHistoryParser historyParser, ProcessExecutor executor) { this.executor = executor; this.historyParser = historyParser; }
/// <summary> /// Create an instance of the source control integration. /// </summary> public ExternalSourceControl(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor) { }
public Vsts(ProcessExecutor executor, IHistoryParser parser, IRegistry registry) : base(parser, executor) { this.registry = registry; this.executor = executor; this.parser = parser as VstsHistoryParser; }
public Vault3(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor) { this._shim = versionCheckerShim; this.Timeout = _shim.Timeout; }
public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter) : base(historyParser, executor) { _fileSystem = fileSystem; _fileDirectoryDeleter = fileDirectoryDeleter; }
public Cvs(IHistoryParser parser, ProcessExecutor executor, IFileSystem fileSystem, IExecutionEnvironment executionEnvironment) : base(parser, executor) { this.fileSystem = fileSystem; this.executionEnvironment = executionEnvironment; }
public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor) { this.registry = registry; this.locale = locale; }
public StubSourceControl(IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor) {}
public Alienbrain(IHistoryParser parser, ProcessExecutor executor, IRegistry registry) : base(parser, executor) { this.registry = registry; }
public Cvs(IHistoryParser parser, ProcessExecutor executor, CvsHistoryCommandParser historyCommandParser) : base(parser, executor) { this.historyCommandParser = historyCommandParser; }