You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.co.il> on 2008/06/06 04:13:40 UTC

Re: How to relocate source repos for svnsync?[RESOLVED]

Liu Yubao wrote on Thu, 29 May 2008 at 10:43 +0800:
> Eric Brayet wrote:
> > Hi,
> > 
> > A simple way to relocate a svnsync-ed repository is to change the
> > revision property of the mirror that stores the source repository's URL.
> > Just use this command:
> > 
> > svn propset svn:sync-from-url --revprop -r 0 <NEW_SOURCE_URL> <MIRROR_URL>
> > 
> > I am not a subscriber of the list, so could you please manage to post
> > this solution as an answer to your original question ?
> > 
> > Best regards,
> > Eric B.
> > 
> In fact I tried this at the beginning, it didn't work for me,
> svnsync complained "svnsync: Malformed URL for repository".
> I use svnsync v1.4.4 (r25188) distributed by Ubuntu 7.10.
> (see http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=77710)
> 
> I checked svn 1.5.0 beta1 on Windows just now, it surprised
> me `svn ps` did work but `svn pe` didn't! Then I realize
> the cause is Vim appends an newline character to the <NEW_SOURCE_URL>
> when I use `svn pe`, stupid mistake:-(
> 
> Thank you very much! I'll send a copy to svn-dev mail list too, hope somebody
> there can add the solution to the FAQ or even better add a 'relocate' sub command
> to svnsync.
> 

I think it's reasonable to have this command in the FAQ.  (It's not 
documented in the book or the FAQ.)  Could you write the FAQ entry and 
submit it as a patch against the FAQ source (faq.html in 
http://svn.collab.net/repos/svn/trunk/www)?

Thanks,

Daniel

> 
> Best regards,
> 
> Liu Yubao
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by Daniel Shahaf <d....@daniel.shahaf.co.il>.
Liu Yubao wrote on Sat, 7 Jun 2008 at 12:38 +0800:
> Daniel Shahaf wrote:
> > Daniel Shahaf wrote on Fri, 6 Jun 2008 at 15:38 +0300:
> >> I committed Lin's patch in r31611 to notes/svnsync.txt.
> >>
> > 
> > s/Lin/Liu/ (twice), sorry!
> > 
> > Daniel
> > (who hates it when people get his name wrong...)
> > 
> Never mind, Chinese names seem strange for English-speaking people,
> but you need s/You'd better not/Do not/ in svnsync.txt, not /Don't not/ :-)
> 

English is not my first language :)

r31618,

Daniel

> Thank you for committing that little patch and Michael for adding
> that to svnbook!
> 
> Best regards,
> Liu Yubao
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by Liu Yubao <yu...@gmail.com>.
Daniel Shahaf wrote:
> Daniel Shahaf wrote on Fri, 6 Jun 2008 at 15:38 +0300:
>> I committed Lin's patch in r31611 to notes/svnsync.txt.
>>
> 
> s/Lin/Liu/ (twice), sorry!
> 
> Daniel
> (who hates it when people get his name wrong...)
> 
Never mind, Chinese names seem strange for English-speaking people,
but you need s/You'd better not/Do not/ in svnsync.txt, not /Don't not/ :-)

Thank you for committing that little patch and Michael for adding
that to svnbook!

Best regards,
Liu Yubao

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by "C. Michael Pilato" <cm...@collab.net>.
Daniel Shahaf wrote:
> Daniel Shahaf wrote on Fri, 6 Jun 2008 at 15:38 +0300:
>> I committed Lin's patch in r31611 to notes/svnsync.txt.
>>
> 
> s/Lin/Liu/ (twice), sorry!
> 
> Daniel
> (who hates it when people get his name wrong...)

Sheesh, Danielle.  Get it right, already!  ;-)

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by Daniel Shahaf <d....@daniel.shahaf.co.il>.
Daniel Shahaf wrote on Fri, 6 Jun 2008 at 15:38 +0300:
> I committed Lin's patch in r31611 to notes/svnsync.txt.
> 

s/Lin/Liu/ (twice), sorry!

Daniel
(who hates it when people get his name wrong...)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by Daniel Shahaf <d....@daniel.shahaf.co.il>.
C. Michael Pilato wrote on Fri, 6 Jun 2008 at 08:14 -0400:
> Daniel Shahaf wrote:
> > Mike, do you think this should be documented in the FAQ as well, or only
> > in the book?  Lin already sent a patch for that.  (Thanks!)
> 
> Is it "frequently asked"?  :-)
> 
> Seriously, our FAQ isn't a one-stop-shop for every question ever asked and
> answered.  That's what mailing list archives and Google are for.  But if we
> think this is the kind of question many folks are going to have -- or better
> yet, have already had -- the FAQ is a fine place to record the answer.
> 
> 

Originally I suggested to add it to the FAQ because I thought that
question should be answered by Subversion's own documentation (by which
I include the book), not just by random blog pages around the Web.
Since the setup instructions are in the book, I don't think it's also
necessary to duplicate the information in the FAQ; everyone is going to
go through the book anyway :)

Or not.  We also have setup instructions in notes/svnsync.txt -- and
that document doesn't mention svn:sync-from-url at all.  Therefore,
I committed Lin's patch in r31611 to notes/svnsync.txt.

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by "C. Michael Pilato" <cm...@collab.net>.
Daniel Shahaf wrote:
> Mike, do you think this should be documented in the FAQ as well, or only
> in the book?  Lin already sent a patch for that.  (Thanks!)

Is it "frequently asked"?  :-)

Seriously, our FAQ isn't a one-stop-shop for every question ever asked and 
answered.  That's what mailing list archives and Google are for.  But if we 
think this is the kind of question many folks are going to have -- or better 
yet, have already had -- the FAQ is a fine place to record the answer.

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by Daniel Shahaf <d....@daniel.shahaf.co.il>.
C. Michael Pilato wrote on Fri, 6 Jun 2008 at 07:39 -0400:
> Daniel Shahaf wrote:
> > I think it's reasonable to have this command in the FAQ.  (It's not
> > documented in the book or the FAQ.)  Could you write the FAQ entry and
> > submit it as a patch against the FAQ source (faq.html in
> > http://svn.collab.net/repos/svn/trunk/www)?
> 
> The book actually does document svnsync's bookkeeping properties to some
> extent -- see the sidebar at the end of the "Repository Replication"[1]
> section.

Saw that -- I grepped the book sources before I said that changing the
sync source wasn't documented.

> But while it mentions svn:sync-from-url, it doesn't explicitly
> provide an example of changing it.  I've added such an example just now.
> 
> [1]
> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication
> 
> 

Mike, do you think this should be documented in the FAQ as well, or only
in the book?  Lin already sent a patch for that.  (Thanks!)

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: How to relocate source repos for svnsync?[RESOLVED]

Posted by "C. Michael Pilato" <cm...@collab.net>.
Daniel Shahaf wrote:
> Liu Yubao wrote on Thu, 29 May 2008 at 10:43 +0800:
>> Eric Brayet wrote:
>>> Hi,
>>>
>>> A simple way to relocate a svnsync-ed repository is to change the
>>> revision property of the mirror that stores the source repository's URL.
>>> Just use this command:
>>>
>>> svn propset svn:sync-from-url --revprop -r 0 <NEW_SOURCE_URL> <MIRROR_URL>
>>>
>>> I am not a subscriber of the list, so could you please manage to post
>>> this solution as an answer to your original question ?
>>>
>>> Best regards,
>>> Eric B.
>>>
>> In fact I tried this at the beginning, it didn't work for me,
>> svnsync complained "svnsync: Malformed URL for repository".
>> I use svnsync v1.4.4 (r25188) distributed by Ubuntu 7.10.
>> (see http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=77710)
>>
>> I checked svn 1.5.0 beta1 on Windows just now, it surprised
>> me `svn ps` did work but `svn pe` didn't! Then I realize
>> the cause is Vim appends an newline character to the <NEW_SOURCE_URL>
>> when I use `svn pe`, stupid mistake:-(
>>
>> Thank you very much! I'll send a copy to svn-dev mail list too, hope somebody
>> there can add the solution to the FAQ or even better add a 'relocate' sub command
>> to svnsync.
>>
> 
> I think it's reasonable to have this command in the FAQ.  (It's not 
> documented in the book or the FAQ.)  Could you write the FAQ entry and 
> submit it as a patch against the FAQ source (faq.html in 
> http://svn.collab.net/repos/svn/trunk/www)?

The book actually does document svnsync's bookkeeping properties to some 
extent -- see the sidebar at the end of the "Repository Replication"[1] 
section.  But while it mentions svn:sync-from-url, it doesn't explicitly 
provide an example of changing it.  I've added such an example just now.

[1] 
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


[PATCH] FAQ: How to relocate the source repos for svnsync?

Posted by Liu Yubao <yu...@gmail.com>.
Daniel Shahaf wrote:
> Liu Yubao wrote on Thu, 29 May 2008 at 10:43 +0800:
>> Eric Brayet wrote:
>>> Hi,
>>>
>>> A simple way to relocate a svnsync-ed repository is to change the
>>> revision property of the mirror that stores the source repository's URL.
>>> Just use this command:
>>>
>>> svn propset svn:sync-from-url --revprop -r 0 <NEW_SOURCE_URL> <MIRROR_URL>
>>>
>>> I am not a subscriber of the list, so could you please manage to post
>>> this solution as an answer to your original question ?
>>>
>>> Best regards,
>>> Eric B.
>>>
>> In fact I tried this at the beginning, it didn't work for me,
>> svnsync complained "svnsync: Malformed URL for repository".
>> I use svnsync v1.4.4 (r25188) distributed by Ubuntu 7.10.
>> (see http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=77710)
>>
>> I checked svn 1.5.0 beta1 on Windows just now, it surprised
>> me `svn ps` did work but `svn pe` didn't! Then I realize
>> the cause is Vim appends an newline character to the <NEW_SOURCE_URL>
>> when I use `svn pe`, stupid mistake:-(
>>
>> Thank you very much! I'll send a copy to svn-dev mail list too, hope somebody
>> there can add the solution to the FAQ or even better add a 'relocate' sub command
>> to svnsync.
>>
> 
> I think it's reasonable to have this command in the FAQ.  (It's not 
> documented in the book or the FAQ.)  Could you write the FAQ entry and 
> submit it as a patch against the FAQ source (faq.html in 
> http://svn.collab.net/repos/svn/trunk/www)?
> 

Ok, here is the patch, it should be owed to Eric Brayet (Eric, thank you again:-),
I hope it can help more users.


* add FAQ entry about relocating source repository for svnsync.

Index: faq.html
===================================================================
--- faq.html	(revision 31609)
+++ faq.html	(working copy)
@@ -140,6 +140,7 @@
 </li>
 <li><a href="#vendor-branch">How can I maintain a modified version  (a
     "vendor branch") of third-party software using Subversion?</a></li>
+<li><a href="#svnsync-relocate">How can I relocate the source repository for svnsync?</a></li>
 </ul>
 
 <h4>Troubleshooting:</h4>
@@ -2235,8 +2236,25 @@
 
 </div>
 
+<div class="h3" id="svnsync-relocate" title="svnsync-relocate">
+<h3>How can I relocate the source repository for svnsync?</h3>
+<p>
+A simple way to relocate a svnsync-ed repository is to change the
+revision property of the mirror that stores the source repository's
+URL. Just use this command:
+</p>
+<pre>
+    svn propset svn:sync-from-url --revprop -r 0 &lt;NEW_SOURCE_URL&gt; &lt;MIRROR_URL&gt;
+</pre>
+<p>
+NOTICE: You'd better not use `svn propedit` because editors can append
+an EOL character to &lt;NEW_SOURCE_URL&gt; automatically that will lead svnsync
+complains "svnsync: Malformed URL for repository".
+</p>
 </div>
 
+</div>
+
 <div class="h2" id="troubleshooting" title="troubleshooting">
 <h2>Troubleshooting:</h2>
 <p/>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org