diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 20:33:44 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 20:33:44 +0400 |
commit | 771b5c22987870c84e0bfa90549af1567cb21117 (patch) | |
tree | d376e3f633c2c9ce2b09fa4db7ae27f744682dff /lib | |
parent | 4da8b37e6776af07c7542552155cc06358728d22 (diff) |
Warn user about losing merge request diff
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/migrate/migrate_mr.rake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/migrate/migrate_mr.rake b/lib/tasks/migrate/migrate_mr.rake index 6c2312b053c..74b1db03442 100644 --- a/lib/tasks/migrate/migrate_mr.rake +++ b/lib/tasks/migrate/migrate_mr.rake @@ -1,6 +1,13 @@ # This taks will reload commits/diff for all merge requests desc "GITLAB | Migrate Merge Requests" task migrate_merge_requests: :environment do + puts "Since 5.1 old merge request serialization logic was replaced with a better one." + puts "It makes old merge request diff invalid for GitLab 5.1+" + puts "* * *" + puts "This will rebuild commits/diffs info for existing merge requests." + puts "You will lose merge request diff if its already merged." + ask_to_continue + MergeRequest.find_each(batch_size: 20) do |mr| mr.st_commits = [] mr.save |