2011-07-03 101 views

回答

5

您可以使用SvnClient.Log()。只需確保它只通過指定一個Narror版本範圍來檢索只有一個修訂版,如下面的代碼中所示:

using (SvnClient client = new SvnClient()) 
{ 
    client.Log(
     reposUri, 
     new SvnLogArgs {Range = new SvnRevisionRange(9999, 9999)}, 
     (o, e) => 
      { 
       foreach (SvnChangeItem changeItem in e.ChangedPaths) 
       { 
        Console.WriteLine(
         string.Format(
          "{0} {1} {2} {3}", 
          changeItem.Action, 
          changeItem.Path, 
          changeItem.CopyFromRevision, 
          changeItem.CopyFromPath)); 
       } 
      }); 
} 
相關問題