infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins (JIRA)" <>
Subject [jira] [Commented] (INFRA-17633) Move private tomee-tck svn to public tomee-tck gitbox
Date Mon, 14 Jan 2019 23:18:00 GMT


David Blevins commented on INFRA-17633:

Thanks Daniel.  I persevered and figured this one out.  As I mentioned the openeb-tck directory
was renamed tomee-tck and svn history lost, hence it wasn't coming out in the git svn process.
 I eventually found this post which provided the key steps:



 - git svn clone -s -A authors.txt --no-metadata
 - git svn clone -s -A authors.txt --no-metadata
 - cd tomee-tck
 - git remote add openejb ../openejb-tck/
 - git fetch openejb
 - git log master # write down first commit
 - git log openejb/master # write down last commit
 - git replace <tomee-first> <openejb-last>
 - git filter-branch

>From there I had to grab each branch I wanted*:

 -  git checkout -b openejb-tck remotes/openejb/openejb-tck
 -  git checkout -b openejb-tck-1.5.1 remotes/openejb/openejb-tck-1.5.1
 -  git checkout -b tomee-1.0.0 remotes/openejb/tomee-1.0.0
 -  git checkout -b tomee-1.0.0-beta-1 remotes/openejb/4.0.0-beta-1
 -  git checkout -b tomee-1.0.0-beta-1-hibernate remotes/openejb/1.0.0-beta-1-hibernate
 -  git checkout -b tomee-1.0.0-beta-2 remotes/openejb/tomee-1.0.0-beta-2
 -  git checkout -b tomee-1.0.x remotes/openejb/tomee-1.0.x
 -  git checkout -b tomee-1.5.0 remotes/openejb/tomee-1.5.0
 -  git checkout -b tomee-1.5.1 remotes/openejb/tomee-1.5.1
 -  git checkout -b tomee-1.5.2 remotes/origin/tomee-1.5.2
 -  git checkout -b tomee-1.5.x remotes/origin/tomee-1.5.x
 -  git checkout -b tomee-1.6.0 remotes/origin/tomee-1.6.0
 -  git checkout -b tomee- remotes/origin/tomee-
 -  git checkout -b tomee- remotes/origin/tomee-
 -  git checkout -b tomee-1.6.0-beta-1 remotes/origin/tomee-1.6.0.beta1
 -  git checkout -b tomee-1.7.0 remotes/origin/tomee-1.7.0
 -  git checkout -b tomee-1.7.1 remotes/origin/tomee-1.7.1
 -  git checkout -b tomee-1.7.2 remotes/origin/tomee-1.7.2
 -  git checkout -b tomee-1.7.x remotes/origin/tomee-1.7.x
 -  git checkout -b tomee-7.0.x remotes/origin/tomee-7.0.x

The * caveat is you actually need to grab the branches first in the openejb-tck repo and make
them local, then go back to the tomee-tck repo and do a `git fetch --all` again.

Then add the apache remote and push:

- git remote add apache
- git push apache --all

Everything is now online with full history across the openejb/tomee rename and all needed
branches from both repos:


Details above in case anyone else has to go through the same thing.  Note to the wise, of
course I practiced several times pushing to test repos I created in myown github account before
actually pushing to the apache gitbox repo.

We can close this issue.  Thank you for the initial pointers and authors.txt file!

> Move private tomee-tck svn to public tomee-tck gitbox
> -----------------------------------------------------
>                 Key: INFRA-17633
>                 URL:
>             Project: Infrastructure
>          Issue Type: SVN->GIT Migration
>          Components: GitBox, Subversion
>            Reporter: David Blevins
>            Priority: Major

This message was sent by Atlassian JIRA

View raw message