2016-09-29 09:46:39 +05:30
|
|
|
# Merge requests versions
|
|
|
|
|
2018-11-20 20:47:30 +05:30
|
|
|
> **Notes:**
|
2019-05-18 00:54:41 +05:30
|
|
|
>
|
2018-11-20 20:47:30 +05:30
|
|
|
> - [Introduced][ce-5467] in GitLab 8.12.
|
|
|
|
> - Comments are disabled while viewing outdated merge versions or comparing to
|
|
|
|
> versions other than base.
|
|
|
|
> - Merge request versions are based on push not on commit. So, if you pushed 5
|
|
|
|
> commits in a single push, it will be a single option in the dropdown. If you
|
|
|
|
> pushed 5 times, that will count for 5 options.
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
Every time you push to a branch that is tied to a merge request, a new version
|
|
|
|
of merge request diff is created. When you visit a merge request that contains
|
|
|
|
more than one pushes, you can select and compare the versions of those merge
|
|
|
|
request diffs.
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
![Merge request versions](img/versions.png)
|
|
|
|
|
|
|
|
---
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
By default, the latest version of changes is shown. However, you
|
|
|
|
can select an older one from version dropdown.
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
![Merge request versions dropdown](img/versions_dropdown.png)
|
|
|
|
|
|
|
|
---
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
You can also compare the merge request version with an older one to see what has
|
2016-09-29 09:46:39 +05:30
|
|
|
changed since then.
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
![Merge request versions compare](img/versions_compare.png)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Every time you push new changes to the branch, a link to compare the last
|
|
|
|
changes appears as a system note.
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
![Merge request versions system note](img/versions_system_note.png)
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
[ce-5467]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5467
|