SVN: Difference between revisions

1,296 bytes removed ,  24 November 2022
svn servers have now been taken down
(svn servers have now been taken down)
 
(5 intermediate revisions by 5 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].
[http://weblogs.mozillazine.org/preed/2006/08/subversive_subversion_conversi.html Get preed’s take on it]


=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 CVS server and which project you’re working on.  
File an IT ticket with your username on the SVN server and which project you’re working on.  


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.
Follow the [https://www.mozilla.org/hacking/committerprocedure to gain access to commit].
 
== SVN account for localizers ==
* Load this [https://bugzilla.mozilla.org/enter_bug.cgi?product=mozilla.org&component=Server%20Operations:%20Account%20Requests&op_sys=All&rep_platform=All&cc=:clouserw&short_desc=SVN%20Account%20Request%20-%20Your%20Name%20%3Cemail@address%3E bug template] and fill in the values:
** Summary should be: SVN Account Request - __________ <your@email.address> (where ________ is your name and your@email.address is your e-mail address)
** CC: If you have an L10n leader or anyone else that needs to be aware you are getting an account, add their email addresses to the box.  It's just a comma-separated list.
** Description: Fill in something like:
  Hi, I'd like to get SVN commit access.  I'm the en-US owner.  I have a CVS
  account from bug 111111.
  My LDAP account is:  _____@_____.__
  I need write access to the following locations:
    svn.mozilla.org/addons/trunk/site/app/locale/en-US/
    svn.mozilla.org/projects/mozilla.com/trunk/en-US/
    svn.mozilla.org/projects/mozilla-europe.org/trunk/en/
  Thanks.
* If you have an existing LDAP or CVS account be sure to mention what it is and the bug that you got it in
* If you want to be able to commit over svn+ssh you'll need to attach a public key to your request. Otherwise you'll only be able to commit over https.
* Submit the bug


=How to connect=
=How to connect=
Line 106: 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 <source> <dest>'''
'''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 or mozilla.org 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:
Line 190: 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
8

edits