SVN:如何获取文件的第一个修订版本?
使用存储库中的子目录时,当该特定目录已添加到存储库时如何查找修订版本?通过使用“svn info http://..”,我可以找出最后一次修改的时间(“Last Changed Rev”),但我还需要找出该目录(或文件)首次添加(这是“第一次”修订)。
我一直在“SVN book”上搜索,谷歌搜索,但是,显然,我没有得到任何结果。
注意:我需要这个来制作一个下载日志并将其存储在本地的 PHP 脚本,只是为了弄清楚并避免“使用 tortoise/svnx/versions/you_name_it 应用程序”;)
When working with a subdirectory in a repository, how to find the revision when that specific directory has been added to the repository? By using "svn info http://.." I can find out when it was modified for the last time ("Last Changed Rev"), but I also need to find out the revision number of the commit when that directory (or file) was added for the first time (it's "first" revision).
I have been searching for that at the "SVN book", googling, but, obviously, I got no results.
Note: I need this for making a PHP script which downloads logs and stores them locally, just to make it clear and avoid "use tortoise/svnx/versions/you_name_it application" ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 svn log,反向修正范围:
You could use svn log, with a reverse revision range:
最后一个条目为
The last entry of
对于尝试在 pysvn 中执行此操作的人:
For someone trying to do this in pysvn: