开发者

How to get the version of the latest change of trunk?

开发者 https://www.devze.com 2023-03-16 06:18 出处:网络
I\'m trying to get the SVN version of the latest change happened in trunk. There are many other changes in branches, but I need to get the version number开发者_C百科 of the latest change in trunk. Is

I'm trying to get the SVN version of the latest change happened in trunk. There are many other changes in branches, but I need to get the version number开发者_C百科 of the latest change in trunk. Is it possible to do this with SVN?


The svn info command will tell you

svn info https://svn.server.com/repo/project/trunk

will give you lots of info - particularly you want to look at Revision (the global repo revision) and Last Changed Rev the revision of the path in the info command - in this case the trunk.


svn info <Repository-URL>. 

You can get more info from this


You can script this pretty easily

~ cd <trunk>
~ svn log -l 1 --xml -v


to see last changes in context

svn  diff -rPREV:HEAD [file]

or just to see just changes

svn  diff -rPREV:HEAD [file]|grep "^[+|-]"
0

精彩评论

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

关注公众号