Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SvnTransition

Tobias Heinemann edited this page Apr 19, 2015 · 1 revision

The transition to google code seems to have worked fine for those who have tried it. A general comment seems to be that it is a bit slower than our own Nordita svn, and that the commit messages arrive a bit later than before, but this is probably acceptable.

How to change your existing svn repository

If you have already checked out the code under Nordita's svn, you can just change the settings, e.g. like

find . -name "entries" -exec sed -i 's=https://[email protected]:/svn/pencil-code=https://[email protected]/svn=' '{}' \;

Here brandenb has to be replaced by your previous nordita-svn name, and AxelBrandenburg has to be replaced by your google gmail name.

Alternatively (usually only if you never used Nordita's svn before), you can do a fresh checkout, via

svn checkout https://pencil-code.googlecode.com/svn/trunk/ pencil-code --username AxelBrandenburg

where AxelBrandenburg has to be replaced by your google gmail name.

Note for Mac's users: the correct syntax is the following for the above sed replacement

find . -name "entries" -exec sed -i '' 's=https://[email protected]:/svn/pencil-code=https://[email protected]/svn=' '{}' \;

No Google account yet

Give you google email account to one of the project owner, who can add you as a member. When you have an account, go to your user profile and then to settings to get a special password that you use for svn.

E-mail notification for subversion commits and the issue tracker

Sign up to the mailing lists http://groups.google.com/group/pencil-code-commits and http://groups.google.com/group/pencil-code-issues.

Want to discuss the Pencil Code

Sign up to the mailing list http://groups.google.com/group/pencil-code-discuss. This replaces the previous pencil-code discuss mailing list.

Problems with SVN?

Visit http://svnbook.red-bean.com/en/1.0/apa.html if you have problems with svn. Given your cvs background, it is easy to forget about things like svn resolved. Another important command would be svn revert chemistry.f90 if you deleted it by accident.

More tips

Unlike CVS, the $Id$ tag is not automatically expanded. If the file's name is README, for example, one needs to say explicitly

svn propset svn:keywords 'Id' README

to get the $Id$ keyword expanded. Likewise, if a file happened to be checked in as an excecutable, one can delete this property (or do the opposite) by saying, e.g.,

svn propdel svn:executable anelastic_hurdle.tex
svn propset svn:executable ON pc_remove_dot

What if my last check-in happened from another user-id? This can happen if you shared your unix account with somebody else, but he/she did his/her last checkin under his/her svn name. Then, try this:

svn --username=AxelBrandenburg update

Note: if you do a check-in for the first time, and it fails, this could be because you checked out the code with http rather than https. To fix this, type

svn switch --relocate http://pencil-code.googlecode.com/svn/trunk/ https://pencil-code.googlecode.com/svn/trunk/ --username [email protected]

You will need to do this in your pencil-code directory. You will then be asked about your authentication (which is your gmail address) and about your password (which you get from the pencil code home page under profile and settings, and you need to be logged in their page for that.

Clone this wiki locally