极狐GitLab 正式推出面向 GitLab 老旧版本(12.x、13.x、14.x、15.x 等)免费用户的专业升级服务,点击查看详情

返回列表 发布新帖

mr的“变更”数量在不同阶段不一致

210 1
发表于 2025-11-10 17:23:48 | 显示全部楼层 阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

mr的不同生命周期,“变更”栏的数量不一样,创建时和合并后都显示2个,开放中显示1个。请问这个变更数量的统计逻辑是什么,每个阶段有什么区别?

微信图片_20251110172010_6_2.png

微信图片_20251110172010_7_2.png

微信图片_20251110171906_5_2.png

回复

使用道具 举报

评论1

wangkaixuanLv.7 发表于 2025-11-17 10:33:44 | 显示全部楼层
根据官方文档 https://docs.gitlab.com/user/project/merge_requests/changes/ 的解释
A merge request proposes a set of changes to files in a branch in your repository. GitLab shows these changes as a diff (difference) between the current state and the proposed changes. By default, the diff compares your proposed changes (the source branch) with the target branch. By default, GitLab shows only the changed portions of the files.

只要下面任意一个变动发生:
        •        源分支新增提交
        •        源分支 rebase
        •        目标分支新增提交
        •        GitLab 自动 rebase
        •        自动解决冲突
GitLab 都会重新算一次 diff,因此数量可能不同。

目前怀疑你这边目标分支有可能有提交过代码进行了覆盖,或者进行了 rebase 操作
回复

使用道具 举报

意见建议

Email:forum@gitlab.cn
  • 关注公众号
  • 添加专业顾问
Copyright © 2001-2025 极狐GitLab论坛 版权所有 All Rights Reserved. 鄂ICP备2021008419号-1|鄂公网安备42018502006137号
关灯 快速发帖
扫一扫添加专业顾问
返回顶部
快速回复 返回顶部 返回列表