gitlab-org--gitlab-foss/app
Dmitriy Zaporozhets 9211b541d3
Improve MR code reloading when push code
Every time you pushed to master it updates merge requests that has master
as target branch. So if you have 50 open merge requests point to master
it will reload all of them every time you push a single commit to
master. The funny thing is that after reloading diff of most merge
requests looks the same.

After this patch we update diff only if we push commit to master that
includes in MR commits list.

For example we have next repository:

feature: A - B - C
master: A

We create merge requests #1 with code from feature to master.

MR #1: B - C

If we push to master commit D - MR will not be reloaded. So picture will
look next:

feature: A - B - C
master: A - D
MR #1: B - C

And if we push to master commit B - MR will be reloaded. So picture will
look next:

feature: A - B - C
master: A - B
MR #1: C

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-02 16:22:23 +02:00
..
assets Fixed an alignment issue, fixes #778 2014-11-20 23:05:46 +01:00
controllers Merge pull request #8283 from cardoe/hipchat-private-server 2014-12-01 18:25:28 +02:00
finders Merge branch 'dashboard_issues_and_mr' into 'master' 2014-10-28 13:38:41 +00:00
helpers Merge branch 'reactivate-hljs-autodetection' into 'master' 2014-11-30 13:22:48 +00:00
mailers Remove unused password argument from notification 2014-12-01 15:11:26 +01:00
models Merge branch 'larger-avatar' 2014-12-02 12:44:18 +02:00
services Improve MR code reloading when push code 2014-12-02 16:22:23 +02:00
uploaders Removed + '' + 2014-10-29 10:52:54 +01:00
views Merge branch 'larger-avatar' 2014-12-02 12:44:18 +02:00
workers Run 'GC.start' after every EmailsOnPushWorker job 2014-11-14 12:22:22 +01:00