You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by "Georg Kallidis (Jira)" <ji...@apache.org> on 2021/09/06 14:55:00 UTC

[jira] [Commented] (TRB-102) Migration of VCS-Repos from svn to git

    [ https://issues.apache.org/jira/browse/TRB-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410660#comment-17410660 ] 

Georg Kallidis commented on TRB-102:
------------------------------------

h1. Steps

Find useful information from [https://cwiki.apache.org/confluence/display/INFRA/How+Apache+Jena+migrated+from+the+CMS.|https://cwiki.apache.org/confluence/display/INFRA/How+Apache+Jena+migrated+from+the+CMS]
h3. Preparation
{code:sh}
wget https://gitbox.apache.org/authors.txt
// in svn repo
svn log -r 1:HEAD --limit 1
{code}
h3. Example for two "easy" exports with no layout and (std-layout)
{code:sh}
git svn clone --trunk="https://svn.apache.org/repos/asf/turbine/site/" --authors-file=authors.txt --log-window-size=50000 -r223722:HEAD turbine-site
git svn clone --trunk="https://svn.apache.org/repos/asf/turbine/maven/turbine-parent/trunk/" --authors-file=authors.txt --log-window-size=50000 -r1199048:HEAD turbine-parent
{code}

Upload as below.

h3. Example for Init and Fetch in two steps with tags
h4. Init
{code:sh}
git svn init https://svn.apache.org/repos/asf/turbine/fulcrum/trunk/intake turbine-fulcrum-intake
{code}
Adapt turbine-fulcrum-intake/.git/config
{code:yaml}
[svn-remote "svn"]
   url = https://svn.apache.org/repos/asf/turbine/fulcrum
   fetch = trunk/intake:refs/remotes/trunk
   tags = tags/fulcrum-intake-*:refs/remotes/tags/*
{code}
h4. Fetch
{code:sh}
cd turbine-fulcrum-intake
git svn fetch -r222758:HEAD --ignore-paths="^branches" --log-window-size=50000 
{code}
h4. Update
{code:sh}
git remote add origin https://gitbox.apache.org/repos/asf/turbine-fulcrum-intake.git
git push -u origin master
{code}
h5. Update Tags
{code:sh}
$ git branch -a
* master
  remotes/origin/master
  remotes/tags/fulcrum-intake-1.1.0
  remotes/tags/fulcrum-intake-1.2.0
  remotes/tags/fulcrum-intake-1.2.1
  remotes/tags/fulcrum-intake-1.2.2
  remotes/tags/fulcrum-intake-1.2.3
  remotes/tags/fulcrum-intake-2.0.0
  remotes/trunk

$ for t in $(git for-each-ref --format='%(refname:short)' refs/remotes/tags); do git tag ${t/tags\//} $t && git branch -D -r $t; done
...

$ git branch -a
* master
  remotes/origin/master
  remotes/trunk

$ git push origin --tags
...{code}

> Migration of VCS-Repos from svn to git
> --------------------------------------
>
>                 Key: TRB-102
>                 URL: https://issues.apache.org/jira/browse/TRB-102
>             Project: Turbine
>          Issue Type: Task
>          Components: Core, Fulcrum, Site
>            Reporter: Georg Kallidis
>            Priority: Major
>
> * [Result and Discussion in Mailing-List|https://lists.apache.org/thread.html/r668beaf03d6c14010cc381d20256106507318c13fd2d852ee20deb08%40%3Cdev.turbine.apache.org%3E]
> h1. Migration Step 1 (DONE)
> h2. Overview of currently new (yet uninitialized) git repositories
> h3. New Repos
> ||svn-repo name||gitbox URL||Desc||
> |turbine-site|[https://gitbox.apache.org/repos/asf/turbine-site.git]|Main website sources for the Apache Turbine Project|
> |turbine-parent|[https://gitbox.apache.org/repos/asf/turbine-parent.git]|The parent POM for the Apache Turbine and Fulcrum project|
> |turbine-fulcrum-site|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-site.git]|Website sources for the Apache Turbine Fulcrum Subproject|
> |turbine-fulcrum-cache|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-cache.git]|Apache Turbine Fulcrum Cache Component|
> |turbine-fulcrum-json|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-json.git]|Apache Turbine Fulcrum JSON Component|
> |turbine-fulcrum-security|https://gitbox.apache.org/repos/asf/turbine-fulcrum-security.git|Apache Turbine Fulcrum Security Component|
> |turbine-fulcrum-yaafi|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-yaafi.git]|Apache Turbine Fulcrum YAAFI Container Component|
> |turbine-fulcrum-quartz|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-quartz.git]|Apache Turbine Fulcrum Quartz Scheduler Component|
> |turbine-fulcrum-pool|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-pool.git]|Apache Turbine Fulcrum Pool Service Component|
> |turbine-fulcrum-parser|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-parser.git]|Apache Turbine Fulcrum Parser Service Component|
> |turbine-fulcrum-factory|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-factory.git]|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-factory.git]|
> |turbine-fulcrum-intake|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-intake.git]|Apache Turbine Fulcrum Intake Service Component|
> |turbine-fulcrum-crypto|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-crypto.git]|Apache Turbine Fulcrum Crypto Service Component|
> |turbine-fulcrum-localization|https://gitbox.apache.org/repos/asf/turbine-fulcrum-localization.git|Apache Turbine Fulcrum Localization|
> |turbine-fulcrum-testcontainer|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-testcontainer.git]|Apache Turbine Fulcrum Test Container Component|
> |turbine-fulcrum-yaafi-crypto|[https://gitbox.apache.org/repos/asf/turbine-fulcrum-yaafi-crypto.git]|Apache Turbine Fulcrum YAAFI Crypto Library Component|
> h3. Existing git repos
> | turbine-core | git://git.apache.org/turbine-core.git | Mirror of Apache Turbine Core|
> | turbine-fulcrum | git://git.apache.org/turbine-fulcrum.git | Mirror of Apache Turbine Fulcrum Components|
> h3. More needed git repo ?
> ||svn-repo name||gitbox URL||Desc||
> |turbine-fulcrum-build|?|?|
> All notifications go to notifications will go to commits@turbine.apache.org.
> h1. Migration step 2
>  - Syncing with git-svn (requires some time) has yet to be done.
> h1. Migration step 3
>  - open INFRA ticket: replace svn repos with git as primary repos, set turbine-core.git as read/write and unmirror,
>  delete turbine-fulcrum.git (which will be obsolete after migration), archive fulcrum components, see also
>  https://issues.apache.org/jira/browse/INFRA-22176
> h1. Migration step 4
>  - Define website builds
>  - Define build in Jenkins, etc.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)