OCamlPro / gnucobol

A clone of the sourceforge GnuCOBOL compiler from COBOL to C.
https://get-superbol.com
GNU Lesser General Public License v3.0
16 stars 21 forks source link

Could you combine gnucobol2 with gnucobol repo? #67

Open GitMensch opened 1 year ago

GitMensch commented 1 year ago

I know that cross-posting is "not nice", but I wasn't sure on the awareness of https://github.com/OCamlPro/gnucobol2/issues/1 so:

[gnucobol2] has a much longer history (back to https://github.com/OCamlPro/gnucobol2/commit 6c03b34fc4159a993d0f223bb480b58bc4a453e6) and all branches, which lights up the hope that it may be possible to:

  • update the [gnucobol2] repo (= we'd get everything that is actually in)
  • create missing branches for OCamplPro contributions which currently only exist in the gnucobol repo with its content
    • rename gnucobol to gnucobol-old and gnucobol2 to gnucobol
lefessan commented 1 year ago

I just gave another attempt at migration SVN -> GIT. I created three Github projects:

They are supposed to be updated every 10 minutes from the SVN, I will check in a few days if everything works correctly (i.e. updates are pushed), in which case we could decide to use them.

GitMensch commented 1 year ago

That looks quite nice! I guess this should also work with "local" branches (like the ocaml ones we have here)?

lefessan commented 1 year ago

Yes, actually, it could be done in both ways, i.e. merging on Github would commit on SVN, but I haven't tried it (and it makes me a little scary of breaking everything...)

GitMensch commented 1 year ago

Please let's leave GitHub as a "mirror + " only (one way). BTW: can you please share the notes how you setup gnucobol3 and do the automated sync from upstream?

lefessan commented 1 year ago

To create the repo:

svn2git svn+ssh://lefessan@svn.code.sf.net/p/gnucobol/code 
git remote add origin git@github.com:OCamlPro/gnucobol3.git
git push --mirror
lefessan commented 1 year ago

To update it from crontab every 10 minutes:

yes | /usr/local/bin/svn2git --rebase
git push origin --all
git push origin --tags
lefessan commented 1 year ago

Not complex, just takes a lot of time the first time to go through 5000 commits

GitMensch commented 8 months ago

The notes above miss the part how to split the external-docs out to a separate repo.

lefessan commented 8 months ago

So, I have restarted my efforts, and the result is here:

https://github.com/OCamlPro/gnucobol4

This time, all the authors are correctly handled.

Note that I have already switched the gnucobol-docs and gnucobol-contrib to use these mirrors (as they almost had no contributions, except one for docs).

The next operations should be: