Subversion/Repository Layout: Difference between revisions
idea of how to layout a repo with third-party sources |
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" |
||
| Line 30: | Line 30: | ||
Use the --relocate option only when rewriting the URL portion: | Use the --relocate option only when rewriting the URL portion: | ||
< | <syntaxhighlight lang="bash"> | ||
svn switch -v --relocate file:///var/svn/myrepo/widgets http://svn.example.com/myrepo/widgets | svn switch -v --relocate file:///var/svn/myrepo/widgets http://svn.example.com/myrepo/widgets | ||
</ | </syntaxhighlight> | ||
If you make a mistake, it could cause you to have to do a clean checkout. | If you make a mistake, it could cause you to have to do a clean checkout. | ||
Most switches should only involve path changes. A more programmatic approach would be a command like: | Most switches should only involve path changes. A more programmatic approach would be a command like: | ||
< | <syntaxhighlight lang="bash"> | ||
svn switch `cat .svn/entries |grep http |cut -d -f 2` http://svn.example.com/myrepo/widgets | svn switch `cat .svn/entries |grep http |cut -d -f 2` http://svn.example.com/myrepo/widgets | ||
</ | </syntaxhighlight> | ||
Anyway, to find out where a working copy is pointing to, you can simply run '''svn info''' | Anyway, to find out where a working copy is pointing to, you can simply run '''svn info''' | ||
< | <syntaxhighlight lang="bash"> | ||
$ svn info | $ svn info | ||
Path: . | Path: . | ||
| Line 52: | Line 52: | ||
Last Changed Rev: 1975 | Last Changed Rev: 1975 | ||
Last Changed Date: 2006-08-31 12:11:23 -0400 (Thu, 31 Aug 2006) | Last Changed Date: 2006-08-31 12:11:23 -0400 (Thu, 31 Aug 2006) | ||
</ | </syntaxhighlight> | ||
== Repository Layout Example == | == Repository Layout Example == | ||