开发者

Get latest version of tag from SVN

I’m going to create a tool to packaging some of SVN tagged files. Hence my approach is to give the SVN trunk path of the folder I need to package and tool will identify the latest tag location from that folder. So is there any way t开发者_Python百科o get latest tag path of the trunk folder.

Eg: Let’s say my trunk folder is “abcd”. And I have tagged 2 times as follows.

abcd-1.0.0.1-QA
abcd-1.0.0.2-QA

So I need to get abcd-1.0.0.2-QA for my package.

I’m using “TortoiseSVN 1.2.6, Build 4786 - 32 Bit” and MS VS 2010. I develop my tool by C#.

Thanx in advance.


you should look for the highest SVN version number of your tags. you can use svn info on your tag local folders and parse the returns stdout for the "Revision" statement (use perl)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜