2012-10-17 45 views
2

我有下面的代碼(在.NET控制檯應用程序測試):SharpSvn的GetInfo LastChangeRevision是錯誤的

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 ..?

回答

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