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

Re: simultaneous commit of two working copies fails

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-07-02 23:34:30 CEST

Alexis Huxley <ahuxley@gmx.net> writes:

> 'svn help commit' says I can do the following:
> te35$ svn commit gvd ade
> But when I came to try to commit them I got:
> <authentification skipped>
> Sending ade/Makefile
> Sending gvd/Makefile
> Transmitting file data .
> apr_error: #2, src_err 0 : <No such file or directory>
> Commit failed (details follow):
> apr_error: #2, src_err 0 : <No such file or directory>
> svn_io_open_unique_file: error attempting /home/ahuxley/dev/.work-only/svnwcs/.svn/tmp/tempfile.10136.00001.tmp

Oops, sorry, we should fix the help string for 'svn commit'. I'll do

'svn commit' can work on multiple targets, but those targets must be
within the *same* working copy. For now, that's the only way we can
guarantee that the commit is atomic.

In theory, your use-case might be able to work someday too; after all,
your two working copies are from the same repository, and therefore
the commit could still be atomic. But we don't support that case yet.

The error you're seeing is probably svn attempting to create a tmpfile
in the common parent of the two commit targets, but that common parent
has no .svn/ area!

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 2 23:39:00 2002

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.