CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
coepp_gitlab [2015/05/13 14:51]
goncalo [Instructions]
coepp_gitlab [2015/05/13 17:15]
goncalo [Instructions]
Line 221: Line 221:
  
 ==== Instructions ==== ==== Instructions ====
-  * In this example exercise, we are assuming that we want to migrate a SVN repo like ** file:////​import/​sydpp1/​svnsydpp/​atlas/​CommonArea/​SUSY/​SUSY_ToolsSel ** to a git project under a user namespace. 
  
-  * Login to sui.coepp.org.au machine.+  * In this exercise, we are assuming that we want to migrate a SVN repo like ** file:////​import/​sydpp1/​svnsydpp/​atlas/​CommonArea/​SUSY/​SUSY_ToolsSel ** to a git project under a user namespace.
  
   * Start by creating the **SUSY_ToolsSel** git project in GitLab under your user namespace. ​   * Start by creating the **SUSY_ToolsSel** git project in GitLab under your user namespace. ​
     * This represents the remote git repo where your '​new' ​ **SUSY_ToolsSel** git project will be pushed to.      * This represents the remote git repo where your '​new' ​ **SUSY_ToolsSel** git project will be pushed to. 
     * For details on how to create a project in GitLab, please see the **Project Creation** section at [[coepp_gitlab?&#​project_creation]]     * For details on how to create a project in GitLab, please see the **Project Creation** section at [[coepp_gitlab?&#​project_creation]]
 +
 +  * Login to sui.coepp.org.au machine.
  
   * Run the following command to create a '​authors-transform.txt'​ file from svn logs since git needs authors to have a valid name and email.   * Run the following command to create a '​authors-transform.txt'​ file from svn logs since git needs authors to have a valid name and email.
Line 250: Line 251:
     * This will do the standard git-svn transformation (using the authors-transform.txt file you previously created)     * This will do the standard git-svn transformation (using the authors-transform.txt file you previously created)
     * The git repository will be placed in the '​~/​temp'​ folder inside your home directory.     * The git repository will be placed in the '​~/​temp'​ folder inside your home directory.
 +    * The following instruction is different depending of you have a well defined trunk directory in your SVN repo or not (in some cases, we have found that users do not created a proper SVN trunk structure).
 +
 <​code> ​ <​code> ​
 +# For a well defined trunk
 $ git svn clone file:////​import/​sydpp1/​svnsydpp/​atlas/​CommonArea/​SUSY/​SUSY_ToolsSel --no-metadata -A authors-transform.txt --stdlayout ~/temp $ git svn clone file:////​import/​sydpp1/​svnsydpp/​atlas/​CommonArea/​SUSY/​SUSY_ToolsSel --no-metadata -A authors-transform.txt --stdlayout ~/temp
 +
 +or
 +
 +# If you do not have a trunk definition in your SVN repo 
 +$ git svn clone file:////​import/​sydpp1/​svnsydpp/​atlas/​CommonArea/​SUSY --no-metadata -A authors-transform.txt --trunk=SUSY_ToolsSel ~/temp
 </​code>​ </​code>​
  
coepp_gitlab.txt · Last modified: 2015/05/13 17:15 by goncalo
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki