문제

is there a way to get full path of repository from an svn object? when i use .path or .pathRepository method i get only relative path of the file

도움이 되었습니까?

해결책

SvnClient has a method GetRepositoryRoot which gives you the repository root URL. You can then combine this with the relative path of the file you get from .pathRepository.

다른 팁

To get the the full uri to a file, use:

SvnInfoEventArgs info;
client.GetInfo(workingCopyPath, out info);
Console.WriteLine(info.Uri);

The repository root:

Console.WriteLine(info.RepositoryRoot);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top