我有以下代码(在.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);
为什么我从previousRevisionInfo.LastChangeRevision
获得337输出,我们可以在此处看到:http://approvaltests.svn.sourceforge.net/viewvc/approvaltests/trunk/projects/ApprovalTests/DotNetApprovals/ApprovalUtilities/CallStack/Caller.cs?view=log
以前的修订是384 ..?
答案 0 :(得分:1)
在修订版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