Changes between Version 12 and Version 13 of GetMacPortsSource
- Timestamp:
- Mar 11, 2017, 4:45:45 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GetMacPortsSource
v12 v13 1 {{{ 2 #!div style="background: lightyellow;" 3 TODO: This information is outdated. MacPorts migrated to GitHub. 4 }}} 1 == Git Source Control System == 5 2 6 == Subversion Source Control System == 7 8 MacPorts uses [http://subversion.apache.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. Subversion GUI clients are built in to [https://developer.apple.com/xcode/ Xcode] and [http://www.bbedit.com BBEdit]. 3 MacPorts uses [https://git-scm.com/ Git] as its version control system. Git documentation is also available [https://git-scm.com/doc on the web]. The Git command line client is shipped with Xcode 4.1 and later, and is also available through MacPorts. Git GUI clients are built in to [https://developer.apple.com/xcode/ Xcode] and [http://www.bbedit.com BBEdit]. 9 4 10 5 == Browsing the MacPorts Sources Online == 11 6 12 You may browse the MacPorts Subversion sources online in one of three ways:7 You may browse the MacPorts Git sources online [https://github.com/macports on GitHub]. 13 8 14 1. Via the [browser: Trac source code browser] 15 1. Directly through Subversion via its underlying [https://svn.macports.org/repository/macports/ http support]. 16 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 https://svn.macports.org/repository/macports/). 9 == Checking out MacPorts sources using Git == 17 10 18 19 == Checking out MacPorts sources using Subversion == 20 21 To checkout the sources with Subversion: 11 To checkout the sources with Git: 22 12 23 13 {{{ 24 # Checkout the macports trunk25 svn checkout https://svn.macports.org/repository/macports/trunk macports-trunk 14 # Checkout the macports base master branch 15 git clone https://github.com/macports/macports-base.git macports-base 26 16 }}} 27 17 28 When committing to the repository for the first time, subversion will use your local account name as the username for svn.macports.org. This is almost certainly the wrong username, so you can either hit enter when it says "password for 'local-user-name':" and then enter the correct !alias@macports.org when it prompts for username, or you can pass {{{--username}}} to svn like the following example: 18 This will check out the base repository; there are several other repositories including `macports-ports` for the ports tree. Check out any of these that you wish to use as above, simple replacing `macports-base` with the name of the repository you want. 29 19 30 {{{ 31 svn ci . -m 'log message' --username alias@macports.org 32 }}} 33 34 After the first commit with the correct username and password, subversion will cache this information (in ~/.subversion/). 20 When pushing commits to the repository on GitHub, git will prompt for a username and password. You need to use your GitHub handle, not your MacPorts one. You can set up [https://help.github.com/articles/caching-your-github-password-in-git/ password caching] to avoid being asked every time.