Changes between Version 18 and Version 19 of CommittersTipsAndTricks
- Timestamp:
- May 29, 2009, 7:22:18 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CommittersTipsAndTricks
v18 v19 29 29 30 30 {{{ 31 svn mkdir https://svn.macports.org/repository/macports/users/<YourMacPortsUser ID>31 svn mkdir https://svn.macports.org/repository/macports/users/<YourMacPortsUserName> 32 32 }}} 33 33 … … 35 35 36 36 {{{ 37 $ mkdir -p ~/myports 38 $ svn co https://svn.macports.org/repository/macports/users/<YourMacPortsUserID> ~/myports 37 $ svn co https://svn.macports.org/repository/macports/users/<YourMacPortsUserName> ~/myports 39 38 }}} 40 39 … … 42 41 43 42 {{{ 44 file:///Users/<YourSystemUser ID>/myports43 file:///Users/<YourSystemUserName>/myports 45 44 }}} 46 45 47 To work on a copy of a port from MacPorts trunk, use {{{svn copy}}}. For example, to test changes on the cableswig port:46 To work on a copy of a port from MacPorts trunk, use `svn copy`. For example, to test changes on the cableswig port, you can copy the repository trunk (at the HEAD revision) to your new user branch: 48 47 49 48 {{{ 50 $ svn mkdir ~/myports/devel /cableswig51 $ svn copy https://svn.macosforge.org/repository/macports/trunk/dports/devel/cableswig /Portfile ~/myports/devel/cableswig/Portfile49 $ svn mkdir ~/myports/devel 50 $ svn copy https://svn.macosforge.org/repository/macports/trunk/dports/devel/cableswig ~/myports/devel/ 52 51 }}} 53 52 54 Run `portindex` in `~/myports` any time you add a new Portfile, e.g.: 53 Another option for a large branch is to copy everything at the server side, where the copy is equivalent to a unix hard link in the file system; e.g.: 54 {{{ 55 $ svn mkdir https://svn.macports.org/repository/macports/users/<YourMacPortsUserName>/devel 56 $ svn copy \ 57 https://svn.macosforge.org/repository/macports/trunk/dports/devel/cableswig \ 58 https://svn.macports.org/repository/macports/users/<YourMacPortsUserName>/devel/cableswig \ 59 -m "testing modifications to cableswig" 60 $ cd ~/myports 61 $ svn update 62 }}} 63 64 After the copy, run `portindex` in `~/myports` (do this any time you add a new Portfile), e.g.: 55 65 56 66 {{{ 57 67 $ cd ~/myports 68 $ svn update 58 69 $ portindex 59 70 $ port file cableswig