简体   繁体   English

如何从SVN信息库生成文档?

[英]How can I generate documentation from my SVN repository?

I have a Java project in a SVN repository and I need to export a documentation using all my old commits. 我在SVN信息库中有一个Java项目,我需要使用所有旧提交来导出文档。

How can I do this? 我怎样才能做到这一点?

If you're just looking to compose a set of documentation outlining all of the messages from your commits, you can use svn log 如果您只是想撰写一组概述您提交中的所有消息的文档,则可以使用svn log

svn log /path/to/Java/Project 

You can add the --verbose switch if you want to list out what files are modified in each of said commits in the log. 如果要列出日志中每个上述提交中要修改的文件,可以添加--verbose开关。

Whenever I do something like this, I usually output it to a text file so that I can simply copy and paste it into a document so I'll do something like: 每当我做这样的事情时,我通常将其输出到文本文件中,这样我就可以简单地将其复制并粘贴到文档中,以便执行以下操作:

svn log /path/to/Java/Project --verbose > /path/to/output.txt

Which writes it to a convenient text file for you. 它将其写入到您方便的文本文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM