svn -- 自上次合并以来的时间

发布于 2024-10-06 07:54:15 字数 230 浏览 2 评论 0原文

我需要一份“自上次合并以来的时间”报告。我们有一个分支,其中集成了其他分支的更改。为了让每个人保持同步,我们鼓励分支管理员执行从集成线到各自分支的合并。

我正在开发一个提交后钩子,每次在集成行上完成提交时都会发送一份报告,解释:

  1. 源分支
  2. 自集成和其他分支之间上次合并以来的

时间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:

  1. source branch
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

软糯酥胸 2024-10-13 07:54:15

svn log 给你半直的图。

如果所有合并都在尽可能高的目录级别上完成(这是最佳实践),则执行以下命令:

svn log -g https://myrepos.tld/branches/single-private-feature-branch

您将获得通常的历史记录以及合并到此分支中的修订版本。查找字符串“合并方式:”。第一个命中将是最后一次合并到该分支中。您可以选择获取给定修订的日志条目,以确保它来自集成分支,而不是从其他地方合并。

所有这些都可以通过简单的 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:

svn log -g https://myrepos.tld/branches/single-private-feature-branch

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

避讳 2024-10-13 07:54:15

有许多工具可用于执行 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文