Closed OCA-git-bot closed 2 years ago
Hello OCA community:
I am beginning the migration of the account_multicurrency_revaluation
module
I am trying to adhere to migration policies following each step as stated in them
in the following branch:
https://github.com/vauxoo-dev/account-closing/tree/12.0-account_multicurrency_revaluation-hbto (branch naming to be fixed)
While doing so I have hit a question:
Keeping history of the module being migrated
I have tried to use the command suggested in the policies
git format-patch --keep-subject --stdout origin/12.0..origin/11.0 -- <module path> | git am -3 --keep
but it results in errors during the process which could lead to a daunting task in case of modules with large histories, because of the merge conflicts caused by the git am -3 keep
part of the command
I have come to use this another approach:
git clone <git repository A url>
cd <git repository A directory>
git remote rm origin
git filter-branch --subdirectory-filter <directory 1> -- --all
mkdir <directory 1>
# Move your files with `git mv`
git mv (each file / folder) <directory 1>
git add .
git commit -m 'commit message'
And later applying cherry-pick with the resulting commits on the target branh.
Courtesy of this link
Which is the result that you can see in these branches: https://github.com/vauxoo-dev/account-closing/tree/12.0-account_multicurrency_revaluation-hbto https://github.com/vauxoo-dev/account-financial-tools/tree/12.0-account_reversal-hbto
Will this suffice the policies?
I would to have your thoughts regards.
@pedrobaeza https://github.com/OCA/account-closing/issues/85#issuecomment-441413020 could you check this comment
cc/ @moylop260
Regards
@hbto the previous method was very similar to what you have put now, and it has several drawbacks as files that are left in incorrect places if I don't remember bad, so @sbidoul came with this new method, which is shorter and work in almost all places. The only problem comes with merge operations when there are conflicts that messes up commit history, so when the commit order is unscrambled, the conflicts arise again. I also remember that with the --subdirectory-filter
some of this conflicts also happen.
@sbidoul do you have any comment about this?
Sorry I don't remember the details. That method with filter-branch did loose some commits but I don't remember the exact circumstances, so be careful.
@sbidoul & @pedrobaeza
While the history is kept then is ok to use either one or the other way?
Thanks in advance for your comments.
Regards.
Yes, I think so...
Regarding Translation, during migration .po files are to be erased or are they to be kept alongside .pot file.
Regards.
They should all be kept.
@pedrobaeza
What is to be done regarding:
It looks like some users haven't signed our Contributor License Agreement, yet. You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla Here is a list of the users:
Stefan Rijnhart stefan@therp.nl (no github login found) Sandy Carter sandy.carter@savoirfairelinux.com (no github login found) @ <@> (no github login found) Launchpad Translations on behalf of account-core-editors (no github login found) Appreciation of efforts, OCA CLAbot
So far we are migrating an old module.
How do we address this kind of issue?
@hbto answered in the thread. Better to not add noise in this general issue.
Migrated account_cutoff_prepaid https://github.com/OCA/account-closing/pull/93
Migrated account_cutoff_prepaid #93 Please, add to the list Modules to migrate
Migrated account_cutoff_accrual_base https://github.com/OCA/account-closing/pull/99
account_multicurrency_revaluation is already merged in #88
See also #112
account_cutoff_base was merged #90
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Todo
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-12.0
Modules to migrate