[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Does svn merge --reintegrate ^URL syntax really work ?

From: LiuYan 刘研 <lovetide_at_21cn.com>
Date: Fri, 10 Sep 2010 00:19:54 -0700 (PDT)

Thank you Erik,

1. I think I got the cause:
I use Subversion in windows system, it's a little different to linux/unix
system:
The ^ character is a special character in command prompt window or batch
file. the ^ character and it's following characters MUST be quoted:
E:\Incoming\svntest\calc\branches\new-branch>svn list ^/
svn: '\' is not a working copy
E:\Incoming\svntest\calc\branches\new-branch>svn list "^/"
calc/
paint/
tools/

2. But,
beause ^ means "the URL of the repository's root directory”, why svn-book
use ^/trunk instead of ^/calc/trunk ?

The repository layout (
http://svnbook.red-bean.com/nightly/en/images/ch04dia2.png ) in svn-book is
like the following:
E:\Incoming\svntest\calc\branches\new-branch>svn list "^/" -R
calc/
calc/branches/
calc/branches/new-branch/
calc/branches/new-branch/Makefile.txt
calc/branches/new-branch/button.c
calc/branches/new-branch/int.c
calc/trunk/
calc/trunk/Makefile.txt
calc/trunk/button.c
calc/trunk/int.c

svn-book-1.5-final-r3305:
--------------------------
$ svn merge http://svn.example.com/repos/calc/trunk
--- Merging r345 through r356 into '.':
U button.c
U integer.c

svn-book-1.6-nightly-r3776:
--------------------------
$ svn merge ^/trunk
--- Merging r357 through r380 into '.':
U integer.c
U Makefile
A README

Erik Andersson-3 wrote:
>
>
> 10 sep 2010 kl. 04:16 skrev LiuYan 刘研 <lovetide_at_21cn.com>:
>
>>
>> Hi,
>>
>> I'm learning Subversion via svn-book, I encountered a problem in section
>> "Reintegrating a Branch":
>> http://svnbook.red-bean.com/nightly/en/svn.branchmerge.basicmerging.html#svn.branchemerge.basicmerging.reintegrate
>>
>> In this section, it use the following syntax:
>> svn merge --reintegrate ^/branches/my-calc-branch
>>
>> But when I try it, it always report an error:
>> E:\Incoming\svntest\calc\trunk>svn merge ^../branches/my-calc-branch
>> --reintegrate
> Don't mix ^ with ..
>>
>> svn: 不能打开文件“file:///E:/SVNRepository/svntest/calc/branches/.svn/entries”:
>> 文件名、目录名或卷标语法不正确。
>> (can't open file
>> "file:///E:/SVNRepository/svntest/calc/branches/.svn/entries": File
>> name、Directory name or volume syntax incorrect)
>>
>> Then I try full URL syntax (which is in svn-book-1.5), it works.
>> E:\Incoming\svntest\calc\trunk>svn merge --reintegrate
>> file:///E:/SVNRepository/svntest/calc/branches/my-calc-branch
>> --- 正在合并版本库 URL 之间的差异到 “.”:
>> U int.c
>> U .
>>
>>
>> I search the svn log of svn-book, I found this syntax was changed in
>> svn-book-r3383:
>> "Modify ch01 and ch04 to use new ^ URL syntax. (Issue #23.)"
>>
>> So, does svn merge --reintegrate ^URL syntax really work ?
>> --
>> View this message in context:
>> http://old.nabble.com/Does-svn-merge---reintegrate-%5EURL-syntax-really-work---tp29673121p29673121.html
>> Sent from the Subversion Users mailing list archive at Nabble.com.
>>
>
>

-- 
View this message in context: http://old.nabble.com/Does-svn-merge---reintegrate-%5EURL-syntax-really-work---tp29673121p29674288.html
Sent from the Subversion Users mailing list archive at Nabble.com.
Received on 2010-09-10 09:20:31 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.