Monday 19 December 2016

Finish Drupal Ladder [Drupal Core Ladder] - Re-roll patches to apply cleanly to the latest version of Drupal


Finish Drupal Ladder [Drupal Core Ladder] - Re-roll patches

to apply cleanly to the latest version of Drupal



Re-roll patches to apply clearly to the latest version of Drupal


In this part, I am going to update or "re-roll" patches to apply to a newer version of Drupal. I will classified this section into 4 steps.



1.Go to Drupal core issues and search a patch which need to be reviewed by filtering the list of issues tagged as "Needs reroll".




In my case, i am selecting "reroll-1875974-160.patch and I am going to reroll it.


2.Then do the following code below:

   
   CODE:


  • cd /path/to/drupal

  • git pull

  • git apply --check 1875974-statistics_config_settings-5.patch


Result of git apply --check 1875974-statistics_config_setting-5.patch


3.We need to Commit the patch's changes to your local branch.



CODE:


            git status


           git commit -am "Applying patch from issue 1875974"


git commit -am "Applying patch from issue 1875974"


4.Attempt of pulling all of the changes


CODE:


           git rebase 8.2.x




Patch rerolling:


 heervesh@heervesh-VirtualBox:~/drupal$ wget https://www.drupal.org/files/issues/reroll-1875974-160_0.patch
--2016-12-14 14:53:07--  https://www.drupal.org/files/issues/reroll-1875974-160_0.patch
Resolving www.drupal.org (www.drupal.org)... 151.101.17.175
Connecting to www.drupal.org (www.drupal.org)|151.101.17.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26018 (25K) [text/plain]
Saving to: ‘reroll-1875974-160_0.patch’

reroll-1875974-160_0.patch          100%[=================================================================>]  25.41K   132KB/s    in 0.2s   

2016-12-14 14:53:08 (132 KB/s) - ‘reroll-1875974-160_0.patch’ saved [26018/26018]

heervesh@heervesh-VirtualBox:~/drupal$ git apply --check reroll-1875974-160_0.patch
heervesh@heervesh-VirtualBox:~/drupal$ pwd



No comments:

Post a Comment