Example #1
0
        public override async Task ExecuteAsync(IOperationExecutionContext context)
        {
            this.LogInformation("Executing SVN copy...");

            var(c, r) = this.GetCredentialsAndResource(context);

            var client          = new SvnClient(context, c, this.SvnExePath, this);
            var sourcePath      = new SvnPath(r?.RepositoryUrl, this.SourcePath);
            var destinationPath = new SvnPath(this.RepositoryUrl, this.DestinationPath);
            var result          = await client.CopyAsync(sourcePath, destinationPath, this.Message, this.AdditionalArguments).ConfigureAwait(false);

            this.LogClientResult(result);

            this.LogInformation("SVN copy executed.");
        }