How to programmatically get SVN revision description and author in c#?

前端 未结 3 716
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 00:42

How do I programmatically get the revision description and author from the SVN server in c#?

3条回答
  •  你的背包
    2021-02-02 01:27

    You will need to find a C# SVN API to use. A quick Google search found SharpSVN.

    To get message and author for specific revision

    SvnClient client = new SvnClient();
    SvnUriTarget uri = new SvnUriTarget("url", REV_NUM);
    
    string message, author;
    client.GetRevisionProperty(uri, "svn:log", out message);
    client.GetRevisionProperty(uri, "svn:author", out author);
    

提交回复
热议问题