public GetVersionInfo ( Repository repo, FilePath localPath, bool getRemoteStatus ) : VersionInfo | ||
repo | Repository | |
localPath | FilePath | |
getRemoteStatus | bool | |
return | VersionInfo |
protected override IEnumerable <VersionInfo> OnGetVersionInfo(IEnumerable <FilePath> paths, bool getRemoteStatus) { // TODO: optimize by adding a method for handling collections of files foreach (var p in paths) { yield return(Svn.GetVersionInfo(this, p, getRemoteStatus)); } }
protected override Task <IReadOnlyList <VersionInfo> > OnGetVersionInfoAsync(IEnumerable <FilePath> paths, bool getRemoteStatus, CancellationToken cancellationToken) { // TODO: optimize by adding a method for handling collections of files var result = new List <VersionInfo> (); foreach (var p in paths) { result.Add(Svn.GetVersionInfo(this, p, getRemoteStatus)); } return(Task.FromResult((IReadOnlyList <VersionInfo>)result)); }