[18.0][MIG]stock_exception: Migration to 18.0
@jbaudoux Can you review please? Thanks!
@mav-adhoc you lost all the commits history
@jbaudoux HI! Iwas trying to restore the commit history, but i didn't succeeded. can you help me / guide me how to do it? I would really appreciate it! Thank you!
@jbaudoux HI! Iwas trying to restore the commit history, but i didn't succeeded. can you help me / guide me how to do it? I would really appreciate it! Thank you!
@mav-adhoc follow the procedure here https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0
@jbaudoux Sorry, but that procedure explains how to do it when you migrate a module without changing its repository. That i can do it without any problem. the problem here is that i have to change the repo of the module, so that's when i loose the commits history.
@mav-adhoc Split the command to extract commits and replay them:
On old repo:
git format-patch --keep-subject --stdout origin/18.0..origin/17.0 -- stock_exception.patch > /tmp/stock_exception.patch
On new repo:
git am -3 --keep < /tmp/stock_exception.patch
@mav-adhoc Split the command to extract commits and replay them: On old repo:
git format-patch --keep-subject --stdout origin/18.0..origin/17.0 -- stock_exception.patch > /tmp/stock_exception.patchOn new repo:git am -3 --keep < /tmp/stock_exception.patch
@mav-adhoc There is also a possibility by adding the reference to the old repository on your current one:
git remote add warehouse https://github.com/OCA/stock-logistics-warehouse
git fetch warehouse
git format-patch --keep-subject --stdout OCA/18.0..warehouse/17.0 -- stock_exception | git am -3 --keep
```
where `OCA` points already to OCA workflow repository