GetVersionInfo() 공개 메소드

public GetVersionInfo ( Repository repo, FilePath localPath, bool getRemoteStatus ) : VersionInfo
repo Repository
localPath FilePath
getRemoteStatus bool
리턴 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));
     }
 }
예제 #2
0
        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));
        }