SVN: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
File an IT ticket with your username on the CVS server and which project you're working on.  
File an IT ticket with your username on the CVS server and which project you're working on.  


If you don't have a CVS account, you need to get a form filled out and attach your public key to the bug.  
If you don't have a CVS account, you need to get a [http://www.mozilla.org/hacking/form.html form] filled out and attach your public key to the bug.


=How to connect=
=How to connect=

Revision as of 16:51, 2 October 2006

Mozilla has a SVN server set up to evaluate it's suitibility use to replace CVS (IIRC).

Get preed's take on it

How to get an account

File an IT ticket with your username on the CVS server and which project you're working on.

If you don't have a CVS account, you need to get a form filled out and attach your public key to the bug.

How to connect

Windows

Get PuTTY and TortoiseSVN.

  • Don't just download the PuTTY exe, use the installer package - it contains Pageant which you need and PuTTYgen which you may need to convert your SSH key.

Fire up Pageant. Right click on the icon in your system tray and click "add key." browse too your private key and select it.

Right click on the icon in your system tray and select "new session."

  • Host name = svn.mozilla.org
  • Port = 22
  • Protocol = SSH

Connection -> Data

  • Auto-login username = your email address

Connection -> Data -> Auth

  • Browse to your private key for authentication

Go back to session, enter a name for your session (mozillasvn is good) and click save.

Click Open to test the connection. You should get something like:

Using username "yourname@youremail.tld".
Authenticating with public key "name-of-your-key" from agent
Last login: last login date

If you get that far, things are good, type exit and terminate the connection.

TortoiseSVN -> settings -> Network. Make it an empty box where it asks you to specify the SSH client. I'm not sure why I did this, but it works for me.

SVN checkout from svn+ssh://nameofyourputtysession/addons/

If this doesn't work, hop on IRC and we'll see what we can do for you. If you work out more solutions, please add them to this page.

Linux

Install a package that works for you. If you're on debian or ubuntu `apt-get install subversion` will handle all this for you.


How to Use SVN

The online book is free and full of good examples :)