[svnbook] r5078 committed - trunk/en/book

cmpilato at users.sourceforge.net cmpilato at users.sourceforge.net
Tue Feb 2 12:09:56 CST 2016


Revision: 5078
          http://sourceforge.net/p/svnbook/source/5078
Author:   cmpilato
Date:     2016-02-02 18:09:56 +0000 (Tue, 02 Feb 2016)
Log Message:
-----------
This fixes issue #259 (1.8 change: `svn info` now shows
repository-relative URLs).

Some examples specifically grep for "URL".  Most of those now grep for
"^URL" so as not to distract from the larger point of those examples
with the additional "Relative URL" output line.

* en/book/ch03-advanced-topics.xml
* en/book/ch04-branching-and-merging.xml
* en/book/ref-svn.xml
  Update uses of 'svn info' to consider the "Relative URL" output line.

Modified Paths:
--------------
    trunk/en/book/ch03-advanced-topics.xml
    trunk/en/book/ch04-branching-and-merging.xml
    trunk/en/book/ref-svn.xml

Modified: trunk/en/book/ch03-advanced-topics.xml
===================================================================
--- trunk/en/book/ch03-advanced-topics.xml	2016-02-02 17:49:38 UTC (rev 5077)
+++ trunk/en/book/ch03-advanced-topics.xml	2016-02-02 18:09:56 UTC (rev 5078)
@@ -4137,6 +4137,7 @@
 Name: banana.jpg
 Working Copy Root Path: /home/harry/project
 URL: http://svn.example.com/repos/project/banana.jpg
+Relative URL: ^/banana.jpg
 Repository Root: http://svn.example.com/repos/project
 Repository UUID: edb2f264-5ef2-0310-a47a-87b0ce17a8ec
 Revision: 2198
@@ -4335,6 +4336,7 @@
 Path: raisin.jpg
 Name: raisin.jpg
 URL: http://svn.example.com/repos/project/raisin.jpg
+Relative URL: ^/raisin.jpg
 Repository Root: http://svn.example.com/repos/project
 Repository UUID: edb2f264-5ef2-0310-a47a-87b0ce17a8ec
 Revision: 105
@@ -4435,7 +4437,7 @@
 Status against revision:     105
 $ svn unlock raisin.jpg
 svn: E195013: 'raisin.jpg' is not locked in this working copy
-$ svn info raisin.jpg | grep URL
+$ svn info raisin.jpg | grep ^URL
 URL: http://svn.example.com/repos/project/raisin.jpg
 $ svn unlock http://svn.example.com/repos/project/raisin.jpg
 svn: warning: W160039: Unlock failed on 'raisin.jpg' (403 Forbidden)
@@ -5041,6 +5043,7 @@
 Name: green.html
 Working Copy Root Path: /home/harry/projects/my-project
 URL: http://svn.example.com/projects/my-project/trunk/bikeshed/blue.html
+Relative URL: ^/trunk/bikeshed/blue.html
 Repository Root: http://svn.example.com/projects/my-project
 Repository UUID: b2a368dc-7564-11de-bb2b-113435390e17
 Revision: 40

Modified: trunk/en/book/ch04-branching-and-merging.xml
===================================================================
--- trunk/en/book/ch04-branching-and-merging.xml	2016-02-02 17:49:38 UTC (rev 5077)
+++ trunk/en/book/ch04-branching-and-merging.xml	2016-02-02 18:09:56 UTC (rev 5078)
@@ -3348,18 +3348,18 @@
     <informalexample>
       <screen>
 $ cd calc
-
 $ svn info | grep URL
 URL: http://svn.example.com/repos/calc/trunk
-
+Relative URL: ^/calc/trunk
 $ svn switch ^/calc/branches/my-calc-branch
 U    integer.c
 U    button.c
 U    Makefile
 Updated to revision 341.
-
 $ svn info | grep URL
 URL: http://svn.example.com/repos/calc/branches/my-calc-branch
+Relative URL: ^/calc/branches/my-calc-branch
+$
 </screen>
     </informalexample>
 

Modified: trunk/en/book/ref-svn.xml
===================================================================
--- trunk/en/book/ref-svn.xml	2016-02-02 17:49:38 UTC (rev 5077)
+++ trunk/en/book/ref-svn.xml	2016-02-02 18:09:56 UTC (rev 5078)
@@ -3125,6 +3125,7 @@
 Name: foo.c
 Working Copy Root Path: /home/sally/projects/test
 URL: http://svn.red-bean.com/repos/test/foo.c
+Relative URL: ^/foo.c
 Repository Root: http://svn.red-bean.com/repos/test
 Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25
 Revision: 4417
@@ -3147,6 +3148,7 @@
 Path: vendors
 Working Copy Root Path: /home/sally/projects/test
 URL: http://svn.red-bean.com/repos/test/vendors
+Relative URL: ^/vendors
 Repository Root: http://svn.red-bean.com/repos/test
 Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25
 Revision: 19
@@ -3170,6 +3172,7 @@
 Path: readme.doc
 Name: readme.doc
 URL: http://svn.red-bean.com/repos/test/readme.doc
+Relative URL: ^/readme.doc
 Repository Root: http://svn.red-bean.com/repos/test
 Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25
 Revision: 1
@@ -3200,6 +3203,7 @@
    path="."
    revision="1">
 <url>http://svn.red-bean.com/repos/test</url>
+<relative-url&rt;^/</relative-url&rt;
 <repository>
 <root>http://svn.red-bean.com/repos/test</root>
 <uuid>5e7d134a-54fb-0310-bd04-b611643e5c25</uuid>
@@ -5409,7 +5413,7 @@
 
       <informalexample>
         <screen>
-$ svn info | grep URL:
+$ svn info | grep ^URL:
 URL: file:///var/svn/repos/trunk
 $
 </screen>





More information about the svnbook-dev mailing list