public AddRepositoryString ( string repository ) : void | ||
repository | string | |
Результат | void |
public void GetMergesTest() { var filterBuilder = new MergeFindFilterBuilder(); filterBuilder.AddRepositoryString(PlasticTestHelpers.LibGit2Workspace.Repository); filterBuilder.AddDestinationBranch("/attr-export"); var res = Plastic.GetMerges(filterBuilder.ToString(), Environment.CurrentDirectory); Assert.AreEqual(63, res.Count); }
private Task<IList<MergeInfo>> GetMergesAsync() { var mfb = new MergeFindFilterBuilder(); mfb.AddSourceBranch(Branch); mfb.AddDestinationBranch(Branch); mfb.AddRepositoryString(Repository); var workingDirectory = SessionState.Path.CurrentFileSystemLocation.ProviderPath; var mergesTask = Plastic.GetMergesAsync(mfb.ToString(), workingDirectory, CancellationToken); return mergesTask; }