vcs:svnfaq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vcs:svnfaq [2009/07/29 12:19] scottmacvcs:svnfaq [2021/04/06 08:00] (current) – rename master to main sergey
Line 3: Line 3:
  
 ====== Moving to SVN FAQ ====== ====== Moving to SVN FAQ ======
-   * The repository URL is http://svn.php.net/repository/ . The ViewVC URL is http://svn.php.net/+   * The repository URL is https://svn.php.net/repository/ . The ViewVC URL is https://svn.php.net/
    * You should read the [[http://darkrainfall.org/phpsvn-guide.html|quick & dirty guide to using PHP's SVN]]    * You should read the [[http://darkrainfall.org/phpsvn-guide.html|quick & dirty guide to using PHP's SVN]]
    * Wanna help? The [[vcs/svnfaq/firefighting]] page lists all smokes and fires detected    * Wanna help? The [[vcs/svnfaq/firefighting]] page lists all smokes and fires detected
Line 12: Line 12:
 The following command lines might get you started, you should read the information below in any case! The following command lines might get you started, you should read the information below in any case!
  
-Fetch current PHP source code and the (by the time this is writtenactive branches:+The **recommended** way is to make a sparse checkout of the php-src only (see below for a more fully fledged example):
 <code> <code>
-svn co http://svn.php.net/repository/php/php-src/trunk PHP_TRUNK +svn co https://svn.php.net/repository/php/php-src --depth immediates php-src 
-svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3 PHP_5_3 +cd php-src 
-svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_2 PHP_5_2+svn up branches tags --set-depth immediates 
 +svn up trunk branches/PHP_5_4 branches/PHP_5_3 --set-depth infinity
 </code> </code>
  
 +Or alternatively (but **not** recommended), you can fetch the current PHP source code and the (by the time this is written) active branches:
 +<code>
 +svn co https://svn.php.net/repository/php/php-src/trunk PHP_TRUNK
 +svn co https://svn.php.net/repository/php/php-src/branches/PHP_5_3 PHP_5_3
 +svn co https://svn.php.net/repository/php/php-src/branches/PHP_5_4 PHP_5_4
 +</code>
  
 Fetch the trunk (HEAD) of a PEAR module: Fetch the trunk (HEAD) of a PEAR module:
  
 <code> <code>
-svn co http://svn.php.net/repository/pear/packages/$NAME/trunk $NAME+svn co https://svn.php.net/repository/pear/packages/$NAME/trunk $NAME
 </code> </code>
  
Line 29: Line 36:
  
 <code> <code>
-svn co http://svn.php.net/repository/pecl/$NAME/trunk $NAME+svn co https://svn.php.net/repository/pecl/$NAME/trunk $NAME
 </code> </code>
  
Line 35: Line 42:
  
 ===== I tried to check out a module and svn said, "svn: Repository moved temporarily to '/viewvc/module'; please relocate". Why? ===== ===== I tried to check out a module and svn said, "svn: Repository moved temporarily to '/viewvc/module'; please relocate". Why? =====
-You gave SVN a URL of the form "http://svn.php.net/module". The SVN repository lives under a subdirectory called repository; the correct URL is "http://svn.php.net/repository/module".+You gave SVN a URL of the form "https://svn.php.net/module". The SVN repository lives under a subdirectory called repository; the correct URL is "https://svn.php.net/repository/module"
 + 
 + 
 + 
 +===== I tried committing but svn said something like, "Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY request for '/repository/!svn/act/foo'". Why? ===== 
 +SVN commits require a SSL checkout. See [[vcs:https-svn]] for details.
  
 ===== I tried to add a new file to my checkout and svn said "svn:keywords not set on textual file". What does this mean? ===== ===== I tried to add a new file to my checkout and svn said "svn:keywords not set on textual file". What does this mean? =====
Line 50: Line 62:
   - The commit email was sent to a mailing list you aren't subscribed to.   - The commit email was sent to a mailing list you aren't subscribed to.
   - You've run into a bug with our commit mailer. Please let us know by emailing [[mailto:svn-migration@lists.php.net|svn-migration@lists.php.net]].   - You've run into a bug with our commit mailer. Please let us know by emailing [[mailto:svn-migration@lists.php.net|svn-migration@lists.php.net]].
 +
 +===== While making a commit, I get a 400 Bad Request error... what's the problem? =====
 +Your error may look like:
 +  * "svn: Server sent unexpected return value (400 Bad Request) in response to MKACTIVITY request ..."
 +
 +This is often caused by a proxy or firewall that is prohibiting the DeltaV and WebDAV HTTP extensions required by Subversion. There are two possible ways to remedy this issue: 
 +  * Somehow bypass the offending proxy or firewall
 +  * or use SSL to connect to the repository as most proxies do not filter SSL connections at all
 +
 +The PHP project made SSL available on around March 2, 2010, so you are strongly encouraged to start using that. See also [[http://news.php.net/php.internals/47085]].
  
 ====== Sparse Directory Checkout Instructions ====== ====== Sparse Directory Checkout Instructions ======
Line 62: Line 84:
 <code> <code>
 # Create initial top-level src dir # Create initial top-level src dir
-svn co http://svn.php.net/repository --depth empty src+svn co https://svn.php.net/repository --depth empty src
  
 # Fetch the parts of the repository I care about # Fetch the parts of the repository I care about
-svn co http://svn.php.net/repository/php http://svn.php.net/repository/pecl \ +svn co https://svn.php.net/repository/php https://svn.php.net/repository/pecl \ 
-       http://svn.php.net/repository/pear http://svn.php.net/repository/phpdoc \ +       https://svn.php.net/repository/pear https://svn.php.net/repository/phpdoc \ 
-       http://svn.php.net/repository/systems http://svn.php.net/repository/web \+       https://svn.php.net/repository/systems https://svn.php.net/repository/web \
        --depth immediates src        --depth immediates src
  
 # Now, in php-src get all tags and branch names, but only # Now, in php-src get all tags and branch names, but only
-# populate trunk and the PHP_5_2 and PHP_5_3 branches+# populate trunk and the PHP_5_3 and PHP_5_4 branches
 cd ~/src/php/php-src cd ~/src/php/php-src
 svn up branches tags --set-depth immediates svn up branches tags --set-depth immediates
-svn up trunk branches/PHP_5_2 branches/PHP_5_3 --set-depth infinity+svn up trunk branches/PHP_5_3 branches/PHP_5_4 --set-depth infinity
  
 # In pecl get all tags and branch names, # In pecl get all tags and branch names,
Line 107: Line 129:
  
 ===== Gotchas ===== ===== Gotchas =====
-  * The "directory structure" has changed slightly. The root directories represent "will probably be its own repository in the future". Poke around on http://svn.php.net/ to see the specifics.+  * The "directory structure" has changed slightly. The root directories represent "will probably be its own repository in the future". Poke around on https://svn.php.net/ to see the specifics.
   * You have to "[[http://wiki.php.net/vcs/svnfaq#validating_your_account|validate your php.net account]]" to gain access to SVN   * You have to "[[http://wiki.php.net/vcs/svnfaq#validating_your_account|validate your php.net account]]" to gain access to SVN
   * You cannot checkout the entire repository on case-insensitive filesystem   * You cannot checkout the entire repository on case-insensitive filesystem
- 
 ===== Validating your account ===== ===== Validating your account =====
-To gain access to svn.php.net you have to "validate your CVS account". This is automatically done by logging into master (https://master.php.net/login.php), the wiki (http://wiki.php.net) or reply to bugs on bugsweb (http://bugs.php.net/) from the developer tab.+To gain access to svn.php.net you have to "validate your SVN account". This is automatically done by logging into main (https://main.php.net/login.php), the wiki (http://wiki.php.net) or reply to bugs on bugsweb (http://bugs.php.net/) from the developer tab.
 Your access credentials will be synchronized within 15minutes.  Your access credentials will be synchronized within 15minutes. 
  
Line 132: Line 153:
   * [[http://svn.collab.net/repos/svn/trunk/doc/user/cvs-crossover-guide.html|CVS to SVN Crossover Guide]] (shows CVS commands and their SVN equivalent)   * [[http://svn.collab.net/repos/svn/trunk/doc/user/cvs-crossover-guide.html|CVS to SVN Crossover Guide]] (shows CVS commands and their SVN equivalent)
  
-====== NOT IMPORTANT ======+====== Miscellaneous topic (other DVCS bridges, etc.) ====== 
 ===== Using a DVCS mirror ===== ===== Using a DVCS mirror =====
 There are various DVCS mirrors for the subversion repository that can be used. There are various DVCS mirrors for the subversion repository that can be used.
Line 138: Line 160:
 The git repository can be found at http://github.com/php. It was imported using git-svn. The following modules exists: The git repository can be found at http://github.com/php. It was imported using git-svn. The following modules exists:
  
-  * ''php-src.git'' (at <nowiki>git://github.com/php/php-src.git</nowiki>). Ths module contains all branches and tags from http://svn.php.net/repository/php/php-src/. The repository is about 110M big.+  * ''php-src.git'' (at <nowiki>git://github.com/php/php-src.git</nowiki>). Ths module contains all branches and tags from https://svn.php.net/repository/php/php-src/. The repository is about 110M big.
   * ''phpdoc-*.git''. These modules contain all branches and tags from the associated phpdoc repositories.   * ''phpdoc-*.git''. These modules contain all branches and tags from the associated phpdoc repositories.
  
Line 171: Line 193:
 # this step is important, if you don't use trunk, you'll end up reimporting everything. # this step is important, if you don't use trunk, you'll end up reimporting everything.
 git checkout -b master trunk git checkout -b master trunk
-git svn init -s http://svn.php.net/repository/php/php-src/+git svn init -s https://svn.php.net/repository/php/php-src/
 # this will rebuild your the commit mapping. It will just list all the revision but it shouldn't import everything. # this will rebuild your the commit mapping. It will just list all the revision but it shouldn't import everything.
 git svn rebase git svn rebase
Line 214: Line 236:
 git config remote.origin.fetch refs/remotes/trunk:refs/remotes/git-svn git config remote.origin.fetch refs/remotes/trunk:refs/remotes/git-svn
 git fetch git fetch
-git svn init http://svn.php.net/repository/php/php-src/trunk+git svn init https://svn.php.net/repository/php/php-src/trunk
 git checkout -b master remotes/trunk git checkout -b master remotes/trunk
 git svn rebase git svn rebase
 </code> </code>
vcs/svnfaq.1248869943.txt.gz · Last modified: 2017/09/22 13:28 (external edit)