Version 22 vs 23
Version 22 vs 23
Edits
Edits
- Edit by • rezzonico, Version 23
- Mar 14 2017 13:05
- Edit by richart, Version 22
- Mar 14 2017 10:54
« Previous Change | Next Change » |
Edit Older Version 22... | Edit Older Version 23... |
Content Changes
Content Changes
This is the manual migration procedure, there's also a script to automate the migration, see [[c4science/migration-script]]
= Migration from GIT =
1. Add a [[ https://c4science.ch/settings/panel/ssh/ | public ssh key ]] to your account (or a [[ https://c4science.ch/settings/panel/vcspassword/ | VCS password ]])
2. [[ c4science/simplerepo/ | Create repo in c4science ]]
3. Clone repo from other GIT (if you don't already have a local copy) and enter repo
```
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks
```
4. Switch the remote origin
```
git remote rename origin old-origin
git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
```
5. Push everything to c4science and set upstream to origin
```
git push --all --set-upstream origin
git push --tag
```
6. Wait until all the commits are parsed by phabricator to be available on the web interface
= Migration from SVN =
* You can either migrate from SVN to GIT (preferred), or SVN to SVN
== SVN to GIT ==
TODO using https://github.com/nirvdrum/svn2git
== SVN to SVN ==
A solution is the capabilities offered by c4science:
- [[ c4science/simplerepo/ | Create a subversion repository ]]
- On the management page before activating the repository go in URIs (on the left panel)
- Add an URI that is the repository to import and select `Observe` as an `I/O Type`
- Activate the repository, this will start the import of data.
- Once it is done, edit the URI you added previously to change the `I/O Type` to `No I/O`. You can also change the Display Type to `Hidden`
= Service accounts =
TODO
This is the manual migration procedure, there's also a script to automate the migration, see [[c4science/migration-script]]
= Migration from GIT =
1. Add a [[ https://c4science.ch/settings/panel/ssh/ | public ssh key ]] to your account (or a [[ https://c4science.ch/settings/panel/vcspassword/ | VCS password ]])
2. [[ c4science/simplerepo/ | Create repo in c4science ]]
3. Clone repo from other GIT (if you don't already have a local copy) and enter repo
```
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks
```
4. Switch the remote origin
```
git remote rename origin old-origin
git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
```
5. Push everything to c4science and set upstream to origin
```
git push --all --set-upstream origin
git push --tag
```
6. Wait until all the commits are parsed by phabricator to be available on the web interface
= Migration from SVN =
* You can either migrate from SVN to GIT (preferred), or SVN to SVN
== SVN to GIT ==
You can use the [[ https://github.com/nirvdrum/svn2git | svn2git ]] utility.
== SVN to SVN ==
**The following only works if the SVN repository is world-readable:**
- [[ c4science/simplerepo/ | Create a subversion repository ]]
- On the management page before activating the repository go in URIs (on the left panel). In the image below, we migrate the hpc-grid svn repository.
- Add an URI that is the repository to import and select `Observe` as an `I/O Type`
{F780307}
- Activate the repository, this will start the import of data.
- Once it is done, edit the URI you added previously to change the `I/O Type` to `No I/O`. You can also change the Display Type to `Hidden`
**The following is a bit trickier and requires the usage of svnadmin, but works in all cases**
= Service accounts =
If you are using //service accounts// for your git and svn repositories, you can either use ssh keys on c4science or you can [[ c4science/bot/ | ask for a bot user ]].
This is the manual migration procedure, there's also a script to automate the migration, see [[c4science/migration-script]]
= Migration from GIT =
1. Add a [[ https://c4science.ch/settings/panel/ssh/ | public ssh key ]] to your account (or a [[ https://c4science.ch/settings/panel/vcspassword/ | VCS password ]])
2. [[ c4science/simplerepo/ | Create repo in c4science ]]
3. Clone repo from other GIT (if you don't already have a local copy) and enter repo
```
git clone https://rezzonic@git.epfl.ch/repo/scitas-benchmarks.git
cd scitas-benchmarks
```
4. Switch the remote origin
```
git remote rename origin old-origin
git remote add origin ssh://git@c4science.ch:2222/diffusion/77/scitas-benchmarks.git
```
5. Push everything to c4science and set upstream to origin
```
git push --all --set-upstream origin
git push --tag
```
6. Wait until all the commits are parsed by phabricator to be available on the web interface
= Migration from SVN =
* You can either migrate from SVN to GIT (preferred), or SVN to SVN
== SVN to GIT ==
TODO usingYou can use the [[ https://github.com/nirvdrum/svn2git | svn2gitit ]] utility.
== SVN to SVN ==
A solution is**The following only works if the capabilities offered by c4science:SVN repository is world-readable:**
- [[ c4science/simplerepo/ | Create a subversion repository ]]
- On the management page before activating the repository go in URIs (on the left panel). In the image below, we migrate the hpc-grid svn repository.
- Add an URI that is the repository to import and select `Observe` as an `I/O Type`
{F780307}
- Activate the repository, this will start the import of data.
- Once it is done, edit the URI you added previously to change the `I/O Type` to `No I/O`. You can also change the Display Type to `Hidden`
**The following is a bit trickier and requires the usage of svnadmin, but works in all cases**
= Service accounts =
TODOIf you are using //service accounts// for your git and svn repositories, you can either use ssh keys on c4science or you can [[ c4science/bot/ | ask for a bot user ]].
c4science · Help