Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: One module one repo
by
dar
Indeed, I found the script I used for this:
On Tue, Jun 18, 2019 at 8:42 PM David Arnold <dar@xoe.solutions> wrote:
PS: I didn't demo the meta repo to make the transition smooth, and maintain this librarian/indexing function of the current layout.But it's literally a no-brainer and current tools must only support recursive clones, and if they don't, to **** with them...El mar., 18 jun. 2019, 8:36 p.m., David Arnold <dar@xoe.solutions> escribió:I LOVE the idea!I have used git subrepo, too. It got a bit complicated after a while. I figure with one repo one module, there is not even a need for it.To separate it, I already made that demo, with full history preserved: https://github.com/xoes-ocaDone with git subrepo ;-)After that transition, using git submodules is just very fine. Stock git.El mar., 18 jun. 2019, 8:32 p.m., Jose R. Prieto <joser.prieto@gmail.com> escribió:I suggest use git subrepoI worked with it from a about two years, without problems.And we can have the current "project repositories" as a "meta repository" for specific subject, and inside it, one module with one individual repo (and isolated); and we will can choice between use the meta repository, or the individual; both for dev and deploy.I can make a very simple "demo", if you like the idea..Regards.PD:Simple notes about git subrepo and use:Git subrepo use.Install (recomended method):~$ git clone https://github.com/ingydotnet/git-subrepo /path/to/git-subrepo~$ echo 'source /path/to/git-subrepo/.rc' >> ~/.bashrcAdd a repository as a subrepo in a subdir of your repository:~$ git subrepo clone <repository> [<subdir>] [-b <upstream-branch>] [-f]Turn an existing subdirectory into a subrepo:~$ git subrepo init <subdir> [-r <remote>] [-b <branch>]Update the subrepo subdir with the latest upstream changes:~$ git subrepo pull <subdir>|--all [-b <branch>] [-r <remote>] [-u]Push a properly merged subrepo branch back upstream:~$ git subrepo push <subdir>|--all [<branch>] [-r <remote>] [-b <branch>] [-u]Fetch the remote/upstream content for a subrepo.:~$ git subrepo fetch <subdir>|--allCreate a branch with local subrepo commits:~$ git subrepo branch <subdir>|--allAdd subrepo branch to current history as a single commit:~$ git subrepo commit <subdir> [<subrepo-ref>]This "plumbing" command finds a common ancestor between two branches. It will look at the referenced tree hash in the commits to see if it can locate a common one:~$ git subrepo merge-base <branch1> <branch2>Get the status of a subrepo. Uses the --all option by default. If the -- quiet flag is used, just print the subrepo names, one per line:~$ git subrepo status [<subdir>]Remove artifacts created by fetch and branch commands:~$ git subrepo clean <subdir>|--ALL|--allEl mié., 19 jun. 2019 3:02, David Arnold <dar@xoe.solutions> escribió:Hi All,It looks like it's popping up again and again.So,ultimately, we may only delay it, I guess.Can I ask experienced OCA shoulders to advise on how to lay out a plan to get this done?In one year, 5 years, 10 years. Doesn't matter.Matters: get it eventually done.Best Regards,David_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe