8
edits
Ljcool2006 (talk | contribs) (svn servers have now been taken down) |
|||
(13 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{outdated}} | |||
[http://subversion.tigris.org/ Subversion] (SVN) is the version control system used on most of the Mozilla websites. The Mozilla repository is available at [http://svn.mozilla.org/ svn.mozilla.org]. There is also an alternative view which provides RSS feeds and other information at [http://viewvc.svn.mozilla.org/vc/ viewvc.svn.mozilla.org]. | [http://subversion.tigris.org/ Subversion] (SVN) is the version control system used on most of the Mozilla websites. The Mozilla repository is available at [http://svn.mozilla.org/ svn.mozilla.org]. There is also an alternative view which provides RSS feeds and other information at [http://viewvc.svn.mozilla.org/vc/ viewvc.svn.mozilla.org]. | ||
=Repository Structure= | =Repository Structure= | ||
Line 21: | Line 20: | ||
=How to get an account= | =How to get an account= | ||
== SVN account for general access == | == SVN account for general access == | ||
File an IT ticket with your username on the | File an IT ticket with your username on the SVN server and which project you’re working on. | ||
Follow the [https://www.mozilla.org/hacking/committer/ procedure to gain access to commit]. | |||
=How to connect= | |||
==Mac== | |||
* Install Mac OSX Developer Tools (XCode) | |||
* use svn from the command line using command line arguments | |||
* if you want to use ssh, make sure your ssh key is installed in ~/.ssh | |||
Instructions coming soon for non-Developers. Mac OS Developer Tools comes with subversion, but a self-service system with instructions for Non-Developers is in the works. | |||
==Windows== | ==Windows== | ||
Get [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] and [http://tortoisesvn.net/ TortoiseSVN]. | Get [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] and [http://tortoisesvn.net/ TortoiseSVN]. | ||
Line 76: | Line 61: | ||
SVN checkout from svn+ssh://nameofyourputtysession/addons/ | SVN checkout from svn+ssh://nameofyourputtysession/addons/ | ||
(I think this needs to be: | |||
svn+ssh://nameofyourputtysession/projects/<your project> | |||
--[[User:Johnjbarton|Johnjbarton]] 12:03, 14 July 2008 (PDT)) | |||
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. | 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. | ||
Line 97: | Line 88: | ||
([http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.checkout.html documentation]) | ([http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.checkout.html documentation]) | ||
'''Usage: svn co | '''Usage: svn co ''source'' ''dest'' ''' | ||
SVN bases its repositories on URLs, so to check out code, you’ll need a URL. For example, to checkout the code for mozilla.com anonymously you could type: | SVN bases its repositories on URLs, so to check out code, you’ll need a URL. For example, to checkout the code for mozilla.com or mozilla.org anonymously you could type: | ||
''svn co http://svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' | ''svn co http://svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' <br> | ||
''svn co http://svn.mozilla.org/projects/mozilla.org/trunk/ mozilla.org/'' | |||
or if you have an account: | or if you have an account with an SSH key: | ||
''svn co svn+ssh://yourusername(see note below)@svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' | ''svn co svn+ssh://yourusername(see note below)@svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/''<br> | ||
''svn co svn+ssh://yourusername(see note below)@svn.mozilla.org/projects/mozilla.org/trunk/ mozilla.org/'' | |||
Your username is usually your email address. In case you experience errors when using more than one ‘@’ sign in the repository URL, make sure you encode the @ sign in the email address as %40. | Your username is usually your email address. In case you experience errors when using more than one ‘@’ sign in the repository URL, make sure you encode the @ sign in the email address as %40. | ||
or if you want to use https: | |||
''svn co https://svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/''<br> | |||
''svn co https://svn.mozilla.org/projects/mozilla.org/trunk/ mozilla.org/'' | |||
You'll be prompted for your username and password. | |||
===commit (ci)=== | ===commit (ci)=== | ||
Line 172: | Line 172: | ||
[http://viewvc.svn.mozilla.org/vc/ Viewvc] can be quite useful for browsing sources and seeing changes. | [http://viewvc.svn.mozilla.org/vc/ Viewvc] can be quite useful for browsing sources and seeing changes. | ||
= See also = | |||
* [[Mercurial]], Mozilla's version control system for the source code of most of its software products. | |||
* [[Template:SVN]] to create a link to a version in Subversion |
edits