svn -- 自上次合并以来的时间
我需要一份“自上次合并以来的时间”报告。我们有一个分支,其中集成了其他分支的更改。为了让每个人保持同步,我们鼓励分支管理员执行从集成线到各自分支的合并。
我正在开发一个提交后钩子,每次在集成行上完成提交时都会发送一份报告,解释:
- 源分支
- 自集成和其他分支之间上次合并以来的
时间svn mergeinfo 是起点,但是其他命令会有所帮助我得到这个信息吗?
I am in need of a "time since last merge" report. We have a single branch where changes from other branches are integrated. To keep everyone in sync, we encourage branch masters to perform a merge from integration line to their respective branches.
I am working on a post-commit hook that will send a report every time a commit is done on integration line that explains:
- source branch
- time since last merge between integration and other branches
svn mergeinfo is the starting point, but what other commands will help me get this info?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
svn log 给你半直的图。
如果所有合并都在尽可能高的目录级别上完成(这是最佳实践),则执行以下命令:
您将获得通常的历史记录以及合并到此分支中的修订版本。查找字符串“合并方式:”。第一个命中将是最后一次合并到该分支中。您可以选择获取给定修订的日志条目,以确保它来自集成分支,而不是从其他地方合并。
所有这些都可以通过简单的 shell 脚本来完成。
希望它有帮助:)
C
svn log gives you the figure semi-straight.
If all merging is done on the highest possible directory level (as is best practice), then execute the following command:
you will get the usualy history plus revisions that were merged into this branch. Look for the string "Merged via: ". The first hit will be the last merge into this branch. You can optionally fetch the log entry of the revision given to make sure it is comming from the integration branch and was not merged from some other place.
All this can be done with simple shellscripting.
Hope it helps :)
C
有许多工具可用于执行 SVN 报告。在这个问题的答案中提到了其中的许多内容:svn 可以使用哪些报告?< /a>
There are a number of tools available to do SVN reporting. Many of them are mentioned in the answer to this question: What reporting is available for svn?