You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bo Yang <bo...@yahoo.com.cn> on 2006/01/11 12:24:02 UTC

Question for copying dir: How to enforce rename when DST dir exists

Hi All,
   
  Here is a question for copy directory.
  If the DST dir exists, the SRC dir will become a sub-dir of DST dir.
  But I want to rename SRC to DST rather than make sub-dir of DST.
  How could I achieve this?
   
  For example, 
  I have two existing directories: svn://host/src, svn://host/dst.
  When executing "svn copy svn://host/src svn://host/dst",
  the src dir will be copied to svn://host/dst/src.
  But my target is to make src be copied and renamed to svn://host/dst.
  Is there any way to do this?
   
  Thanks.
  Bob

		
---------------------------------
 雅虎1G免费邮箱百分百防垃圾信
 雅虎助手-搜索、杀毒、防骚扰  

回复: Re: Re: Question for copying dir: How to enforce rename when DST dir exists

Posted by Bo Yang <bo...@yahoo.com.cn>.
Norbert,

I got it.
Hope there would be some option such as --force for
copy
in the future version.

Anyway, SVN is already very great!

Thanks a lot.

Regards,
Bob

--- Norbert Unterberg <nu...@gmail.com>

> 2006/1/11, Bo Yang <bo...@yahoo.com.cn>:
> 
> > By the way, I can not find issue #2188
> > in http://subversion.tigris.org/.
> > Could you give a link?
> 
> You find issues here:
> http://subversion.tigris.org/project_issues.html
> 
> Issue #2188 is here:
>
http://subversion.tigris.org/issues/show_bug.cgi?id=2188
> 
> Norbert
> 



	

	
		
___________________________________________________________ 
雅虎1G免费邮箱百分百防垃圾信 
http://cn.mail.yahoo.com/

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

Re: Re: Question for copying dir: How to enforce rename when DST dir exists

Posted by Norbert Unterberg <nu...@gmail.com>.
2006/1/11, Bo Yang <bo...@yahoo.com.cn>:

> By the way, I can not find issue #2188
> in http://subversion.tigris.org/.
> Could you give a link?

You find issues here:
http://subversion.tigris.org/project_issues.html

Issue #2188 is here:
http://subversion.tigris.org/issues/show_bug.cgi?id=2188

Norbert

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


Re: Re: Question for copying dir: How to enforce rename when DST dir exists

Posted by Bo Yang <bo...@yahoo.com.cn>.
Peter,

Thanks a lot for your reply.

So it seems there is no way other than 
remove the destination first :(

By the way, I can not find issue #2188
in http://subversion.tigris.org/.
Could you give a link?

Best Regards,
Bob


--- "Peter N. Lundblad" <pe...@famlundblad.se>

> On Wed, 11 Jan 2006, Bo Yang wrote:
> 
> >   Here is a question for copy directory.
> >   If the DST dir exists, the SRC dir will become a
> sub-dir of DST dir.
> >   But I want to rename SRC to DST rather than make
> sub-dir of DST.
> >   How could I achieve this?
> >
> You need to remove the destination first. Issue
> #2188 is related on the
> API level.
> 
> Thanks,
> //Peter
> 



		
___________________________________________________________ 
无限容量雅虎相册,原图等大下载,超快速度,赶快抢注! 
http://cn.photos.yahoo.com

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

Re: Question for copying dir: How to enforce rename when DST dir exists

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Wed, 11 Jan 2006, Bo Yang wrote:

>   Here is a question for copy directory.
>   If the DST dir exists, the SRC dir will become a sub-dir of DST dir.
>   But I want to rename SRC to DST rather than make sub-dir of DST.
>   How could I achieve this?
>
You need to remove the destination first. Issue #2188 is related on the
API level.

Thanks,
//Peter

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