Our repository site http://petsc.cs.iit.edu can ocassionally go offline. An alternate repository location where one could share [push/pull] commits is useful at such times. No data will be lost by switching.
Create a bitbucket account (Mandatory)
- Sign-up at https://bitbucket.org/account/signup/ and create an individual account: YourUserName.
- [Optional:] For ssh access - register your public ssh key at: 'YourName' -> 'Account' -> 'SSH keys'.
- If you have a .edu email id - add it to: 'YourName'-> 'Account' -> 'Email adresses'. If you were to host private repositories - this will enable you to add in over 5 users to such a repository.
Alternative location for petsc-dev and buildsystem
If the default petsc-dev or BuildSystem site is unavailable:
- ask petsc-maint@mcs.anl.gov to enable write access for you (try it first, you may already have access).
- from your petsc-dev repository directory use
hg pull https://YourUserName@bitbucket.org/petsc/petsc-devhg push https://YourUserName@bitbucket.org/petsc/petsc-dev
- from your BuildSystem repository directory use
hg pull https://YourUserName@bitbucket.org/petsc/buildsystemhg push https://YourUserName@bitbucket.org/petsc/buildsystem
Once the outage is over - switch back to using petsc.cs.iit.edu with 'hg push'
and 'hg pull'.
Sharing other repositories
Setting up alternative repository for reponame (anyone can do this):
- At bitbucket create a new repository reponame (must be lower case) at: 'Repositories' -> 'Create repository'.
- from your current repository directory
hg push https://YourUserName@bitbucket.org/YourUserName/reponame
- Go to 'Repositories' -> 'reponame' -> Admin -> 'Access management' and add in users with their bitbucket UserName or invite them by their registered email address.
Using the alternative repository (created by AdminUserName):
- ask repo admin to enable read/write access for you (if they have not done so)
- now you should be able to pull or push with the commands:
hg pull https://YourUserName@bitbucket.org/AdminUserName/reponamehg push https://YourUserName@bitbucket.org/AdminUserName/reponame
Once the outage is over - switch back to using petsc.cs.iit.edu with 'hg push'
and 'hg pull'