vcs:svnfaq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vcs:svnfaq [2009/07/29 12:19] – scottmac | vcs: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:// | + | * The repository URL is https:// |
* You should read the [[http:// | * You should read the [[http:// | ||
* Wanna help? The [[vcs/ | * Wanna help? The [[vcs/ | ||
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 written) active branches: | + | The **recommended** way is to make a sparse checkout of the php-src only (see below for a more fully fledged example): |
< | < | ||
- | svn co http:// | + | svn co https:// |
- | svn co http:// | + | cd php-src |
- | svn co http://svn.php.net/ | + | svn up branches |
+ | svn up trunk branches/PHP_5_4 branches/PHP_5_3 | ||
</ | </ | ||
+ | Or alternatively (but **not** recommended), | ||
+ | < | ||
+ | svn co https:// | ||
+ | svn co https:// | ||
+ | svn co https:// | ||
+ | </ | ||
Fetch the trunk (HEAD) of a PEAR module: | Fetch the trunk (HEAD) of a PEAR module: | ||
< | < | ||
- | svn co http:// | + | svn co https:// |
</ | </ | ||
Line 29: | Line 36: | ||
< | < | ||
- | svn co http:// | + | svn co https:// |
</ | </ | ||
Line 35: | Line 42: | ||
===== I tried to check out a module and svn said, "svn: Repository moved temporarily to '/ | ===== I tried to check out a module and svn said, "svn: Repository moved temporarily to '/ | ||
- | You gave SVN a URL of the form "http:// | + | You gave SVN a URL of the form "https:// |
+ | |||
+ | |||
+ | |||
+ | ===== I tried committing but svn said something like, " | ||
+ | SVN commits require a SSL checkout. See [[vcs: | ||
===== I tried to add a new file to my checkout and svn said " | ===== I tried to add a new file to my checkout and svn said " | ||
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: | - You've run into a bug with our commit mailer. Please let us know by emailing [[mailto: | ||
+ | |||
+ | ===== 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:// | ||
====== Sparse Directory Checkout Instructions ====== | ====== Sparse Directory Checkout Instructions ====== | ||
Line 62: | Line 84: | ||
< | < | ||
# Create initial top-level src dir | # Create initial top-level src dir | ||
- | svn co http:// | + | svn co https:// |
# Fetch the parts of the repository I care about | # Fetch the parts of the repository I care about | ||
- | svn co http:// | + | svn co https:// |
- | http:// | + | https:// |
- | http:// | + | https:// |
| | ||
# 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 |
cd ~/ | cd ~/ | ||
svn up branches tags --set-depth immediates | svn up branches tags --set-depth immediates | ||
- | svn up trunk branches/PHP_5_2 | + | svn up trunk branches/PHP_5_3 |
# In pecl get all tags and branch names, | # In pecl get all tags and branch names, | ||
Line 107: | Line 129: | ||
===== Gotchas ===== | ===== Gotchas ===== | ||
- | * The " | + | * The " |
* You have to " | * You have to " | ||
* 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 " | + | To gain access to svn.php.net you have to " |
Your access credentials will be synchronized within 15minutes. | Your access credentials will be synchronized within 15minutes. | ||
Line 132: | Line 153: | ||
* [[http:// | * [[http:// | ||
- | ====== | + | ====== |
===== 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:// | The git repository can be found at http:// | ||
- | * '' | + | * '' |
* '' | * '' | ||
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:// | + | git svn init -s https:// |
# this will rebuild your the commit mapping. It will just list all the revision but it shouldn' | # this will rebuild your the commit mapping. It will just list all the revision but it shouldn' | ||
git svn rebase | git svn rebase | ||
Line 214: | Line 236: | ||
git config remote.origin.fetch refs/ | git config remote.origin.fetch refs/ | ||
git fetch | git fetch | ||
- | git svn init http:// | + | git svn init https:// |
git checkout -b master remotes/ | git checkout -b master remotes/ | ||
git svn rebase | git svn rebase | ||
</ | </ |
vcs/svnfaq.1248869943.txt.gz · Last modified: 2017/09/22 13:28 (external edit)