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

Re: took longer to delete files in repository

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Fri, 15 May 2009 10:19:13 +1000

On Thu, May 14, 2009 at 3:54 PM, Jay Amorin <jay.amorin_at_gmail.com> wrote:

> This is what i do when i copy file from source root/dev/trunk to
> destination root/test/trunk considering that the file already exist in
> root/test/trunk
>
> I have a script that when is copy a file from source
> file:///srv/svn/root/dev/trunk/test.xls to destination
> file:///srv/svn/root/test/trunk/test.xls.
>
> 1. it will check if the source exist in destination with svn ls
> file:///srv/svn/root/test/trunk/test.xls
> 2. if it exist it will delete the file in destination with svn rm
> file:///srv/svn/root/test/trunk/test.xls (this is where it will take
> longer, like 1 file 1 min. per file) with svn rm -m "blah"
> file:///srv/svn/root/test/trunk/test.xls
> 3. after the file has been removed it will copy the file from source
> to destination with svn cp -m "blah"
> file:///srv/svn/root/dev/trunk/test.xls
> file:///srv/svn/root/test/trunk
>
>
<snip />

Why do you need to delete the existing file before copying across the new
one?

Can you not have a working copy of /test/trunk, perform the copy
(overwriting the existing file), then commit? Reduces the noise associated
with the file movement as well (one revision, not two).

Cheers,
Daniel B.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2264260

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-15 05:07:40 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.