| 1 | == Subversion Source Control System == |
| 2 | |
| 3 | MacPorts uses [http://subversion.tigris.org Subversion] as its version control system. Subversion documentation is available through the [http://svnbook.red-bean.com/ online Subversion Book]. The Subversion command line client svn is shipped with Apple's Mac OS X Leopard, and available through MacPorts on earlier Mac OS X versions. There is also a Subversion installation available in binary form from [http://www.macosforge.org/subversion.html MacOSForge]. Subversion GUI clients are built in to [http://www.apple.com/xcode XCode] and [http://www.bbedit.com BBEdit]. |
| 4 | |
| 5 | == Browsing the MacPorts Sources Online == |
| 6 | |
| 7 | You may browse the MacPorts Subversion sources online in one of three ways: |
| 8 | |
| 9 | 1. Via the [http://trac.macosforge.org/projects/macports/browser Trac source code browser] |
| 10 | 1. Directly through Subversion via its underlying [http://svn.macosforge.org/repository/macports/ http support]. |
| 11 | 1. You may also directly access the Subversion respository through a WebDav client such as the Mac OS X Finder. (Select Connect to Server… and paste in the URL http://svn.macosforge.org/repository/macports/). |
| 12 | |
| 13 | |
| 14 | == Checking out MacPorts sources using Subversion == |
| 15 | |
| 16 | To checkout the sources with Subversion, for read-only access, use commands such as the following: |
| 17 | |
| 18 | {{{ |
| 19 | # Checkout the macports trunk |
| 20 | svn checkout http://svn.macosforge.org/repository/macports/trunk macports-trunk |
| 21 | }}} |
| 22 | |
| 23 | To gain commit access to the repository, you must be granted an account, and be given appropriate privileges. Once that is done, you may checkout the source tree using https: |
| 24 | |
| 25 | {{{ |
| 26 | # Checkout the macports trunk |
| 27 | svn checkout https://svn.macosforge.org/repository/macports/trunk macports-trunk |
| 28 | }}} |