我有以下代码(在.NET控制台应用程序中测试):

var client = new SvnClient();
var previousRevisionUri = new SvnUriTarget("https://approvaltests.svn.sourceforge.net/svnroot/approvaltests/trunk/projects/ApprovalTests/DotNetApprovals/ApprovalUtilities/CallStack/Caller.cs", 480);
SvnInfoEventArgs previousRevisionInfo;
client.GetInfo(previousRevisionUri, out previousRevisionInfo);
Console.WriteLine(previousRevisionInfo.LastChangeRevision);


当我们在这里看到http://approvaltests.svn.sourceforge.net/viewvc/approvaltests/trunk/projects/ApprovalTests/DotNetApprovals/ApprovalUtilities/CallStack/Caller.cs?view=log时,我怎么从previousRevisionInfo.LastChangeRevision获得337输出:
以前的版本是384 ..?

最佳答案

在修订版384中,父目录已更改,但文件本身未更改。

ViewVC将此显示为节点上历史记录的更改,而节点本身未更改。

看着r384:

Directory: trunk/projects/ApprovalTests/DotNetApprovals/ApprovalUtilities/ added
(Copied from trunk/projects/ApprovalTests/DotNetApprovals/SimpleLogger, r383)

Directory: trunk/projects/ApprovalTests/DotNetApprovals/SimpleLogger/  deleted


http://approvaltests.svn.sourceforge.net/viewvc/approvaltests?view=revision&revision=384

10-01 04:18