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

Re: identical copies of directories -> extra space?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-03-17 14:01:16 CET

Seth Delackner <seth@jtan.com> writes:

> On Monday, March 10, 2003, at 04:14 PM, Ben Collins-Sussman wrote:
>
> > Seth Delackner <seth@jtan.com> writes:
> >
> >> The build phase involves a step where a whole set of files just
> >> gets copied
> >> into the built application's directory 'bundle' (OS X directory
> >> with special
> >> structure). These copied files only change in the source tree, so
> >> it seems a
> >> real waste for the repository to not just treat them as the same
> >> file in two
> >> spots. Is that behavior possible?
> >
> > 'svn copy URL URL'?
> >
> > The directory copy only takes up a tiny, constant amount of space in
> > the repository. It's like a hard-link.
>
> Maybe I'm dumb, but since both the build tree and the source tree are
> in the same repository, subversion is getting angry when I try to
> commit the copy:
>
> Adding (bin)
> build/iWake.app/Contents/Resources/English.lproj/MainMenu.nib/
> keyedobjects.nib
> subversion/libsvn_client/commit.c:658: (apr_err=160020)
> svn: Item already exists in filesystem
> svn: Commit failed (details follow):
> subversion/libsvn_fs/tree.c:203: (apr_err=160020)
> svn: file already exists: filesystem `/Users/seth/svn/repos/db',
> transaction `i', path
> `/iWake/English.lproj/MainMenu.nib/keyedobjects.nib'
> subversion/clients/cmdline/util.c:311: (apr_err=160020)
> svn: Your commit message was left in a temporary file:
> subversion/clients/cmdline/util.c:311: (apr_err=160020)
> svn: '/Users/seth/pb/iWake/svn-commit.tmp'

I have to admit, I still don't understand what you're trying to do
here. I recommended 'svn cp URL URL' blindly, and the message above
is an attempt to commit an 'svn cp wc-path wc-path', which is a
slightly different beast.

Either way, in Subversion, the 'svn cp' command will not overwrite the
destination. That's why you're seeing that message.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 17 14:01:59 2003

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

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