stock-logistics-workflow icon indicating copy to clipboard operation
stock-logistics-workflow copied to clipboard

[18.0][MIG]stock_exception: Migration to 18.0

Open mav-adhoc opened this issue 7 months ago • 7 comments

mav-adhoc avatar Jun 04 '25 19:06 mav-adhoc

@jbaudoux Can you review please? Thanks!

mav-adhoc avatar Jun 04 '25 19:06 mav-adhoc

@mav-adhoc you lost all the commits history

jbaudoux avatar Jun 05 '25 07:06 jbaudoux

@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 avatar Jul 04 '25 18:07 mav-adhoc

@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 avatar Jul 05 '25 16:07 jbaudoux

@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 avatar Jul 17 '25 18:07 mav-adhoc

@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

jbaudoux avatar Jul 18 '25 08:07 jbaudoux

@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 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

rousseldenis avatar Jul 18 '25 08:07 rousseldenis