SVN: is it possible to get svn info for a given revision number of a branch

末鹿安然 提交于 2020-07-04 20:26:31

问题


Is it possible to get svn info for a branch for a specific revision number. For example if the latest working copy of a branch has revision number 56, can I get info for the same branch for revsion number 32.


回答1:


There are two options available to get informatioon about past revisions:

  • svn log -r <rev number> <url>: the commit message of a specified revision and url
  • svn info -r <rev number> <url>: some technical information about a specified revision and url

An example: svn log -r 5628 https://repo.exampl.org/prod/branches/info/conf/config

It is all described in the help messages built into the svn command: svn help or svn help info...




回答2:


Assuming you are in a working copy, you can just do the following:

Get commit info:

svn log -c <rev number>

Get commit info with file list:

svn log -c <rev number> -v

Get full file diff:

svn diff -c <rev number>



回答3:


yes u can get the information for the what revision u want.

svn cat -r <rev number> path upto which file u want see the revisions

ex: svn cat -r 34 svn:///dmlrepo/trunk/1.txt



来源:https://stackoverflow.com/questions/14555944/svn-is-it-possible-to-get-svn-info-for-a-given-revision-number-of-a-branch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!