public GetTextFileContent ( |
||
changeset | ||
path | string | |
return | string |
public override string GetTextFileContent(RevisionId changeset, string path)
{
try
{
using (var stream = GetSVNFileStream(changeset, path))
{
stream.Position = 0;
return new StreamReader(stream).ReadToEnd();
}
}
catch (SvnFileSystemException ex)
{
throw new VersionControlException(String.Format("Subversion exception: {0}", ex.Message));
}
}
public void GetTextFileContentUnknownRevision() { using (var s = new Subversion(GetLocalRepositorySettings(), ObjectFactory.GetInstance <ICheckConnectionErrorResolver>(), ObjectFactory.GetInstance <IActivityLogger>(), ObjectFactory.GetInstance <IDiffProcessor>())) { s.GetTextFileContent(99999.ToString(), "/TempSubversionTest/readme.txt"); } }