Changes between Version 14 and Version 15 of howto/SyncingWithSVN


Ignore:
Timestamp:
Jun 16, 2015, 8:24:54 PM (9 years ago)
Author:
rogerpack2005@…
Comment:

the proxy stuff is not needed if you checked out from HTTPS initially. At least it wasn't for me...

Legend:

Unmodified
Added
Removed
Modified
  • howto/SyncingWithSVN

    v14 v15  
    5656=== Step 3: '''Configure Subversion''' ===
    5757
    58 First, tell subversion to use your proxy to connect to the server:
     58First, tell subversion to use your proxy to connect to the server.  This should not be necessary if your initial SVN checkout was from an http or https URL, so most people should not have to do this.
    59591. If the $prefix/var/macports/home/.subversion/servers file doesn't exist, create it by copying the corresponding ~/.subversion/servers file from another user to that location.  (SVN automatically creates this file if it doesn't exist, so you probably already have one.)
    60602. Edit the file and set a proxy for hosts at `*.macports.org`.  Different proxy configurations require different sets of options here, but the file is pretty well commented, so it should be easy to figure out what you need.  At a minimum you'll need settings for http-proxy-host and http-proxy-port.
    6161
    62 Finally, if you want to use SVN over HTTPS to access the repository, you'll need to tell SVN to trust the MacPorts signature.  (SVN doesn't trust the authority that issued it, and `port sync` below invokes `svn up` with the `--non-interactive` flag, so you won't have the opportunity to accept the certificate then.)
     62Finally, if you want to use SVN over HTTPS to access the repository (i.e. if your initial SVN checkout was from the https:// URL), you'll need to tell SVN to trust the MacPorts signature.  (SVN doesn't trust the authority that issued it, and `port sync` below invokes `svn up` with the `--non-interactive` flag, so you won't have the opportunity to accept the certificate then.)
    63631. `mkdir -p $prefix/var/macports/home/.subversion/auth/svn.ssl.server`
    64642. As a normal user, run `svn ls https://svn.macports.org/repository/macports/trunk/dports/`.  When prompted, accept the certificate permanently.
    65653. SVN will store the certificate in a file in the directory `$HOME/.subversion/auth/svn.ssl.server`.  In that directory, find the file that contains the string "`https://svn.macports.org`" and copy it into `$prefix/var/macports/home/.subversion/auth/svn.ssl.server`.
    6666
    67 Or, you can use SVN over HTTP, in which case you don't need to worry about the certificate or the 3 steps above.
     67Or, you can use SVN over HTTP (initial checkout was from http:// URL), in which case you don't need to worry about the certificate or the 3 steps above.
    6868
    69 == Optional Parts ==
     69=== Step 4: ''Sync''' ===
    7070
    71 === Step 4: '''Test Sync''' ===
    72 Run sync in debug mode and watch for "svn update" instead of "rsync" being used:
     71Run sync in debug mode and watch for "svn update" instead of "rsync" being used.  Basically, if this command works, you're good to go, and future sync's will work as well.
    7372
    7473{{{