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

simultaniously commit sibling directories

From: Jack Bates <ms419_at_freezone.co.uk>
Date: Tue, 19 May 2009 16:35:41 -0700

If I simultaneously commit sibling directories in a working copy, I get
an error about the working copy locked - but I can work around by moving
the directories out of the working copy, committing them simultaneously,
then moving them back. Can the working copy locked error be dropped,
saving me from having to work around?

I encounter this error when multiple cron jobs which run in parallel
commit sibling directories. Occasionally the timing is such that two
cron jobs commit sibling directories simultaneously.

jablko_at_tad:~$ svnadmin create test
jablko_at_tad:~$ svn co file:///`pwd`/test wc
Checked out revision 0.
jablko_at_tad:~$ svn mkdir wc/a wc/b
A wc/a
A wc/b
jablko_at_tad:~$ svn ci wc -m ''
Adding wc/a
Adding wc/b

Committed revision 1.
jablko_at_tad:~$ svn mkdir wc/a/c wc/b/d
A wc/a/c
A wc/b/d
jablko_at_tad:~$ (cd wc/a && svn ci -m '' &) && (cd wc/b && svn ci -m '' &)
jablko_at_tad:~$ svn: Working copy '/home/jablko/wc' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
details)
Adding a/c

Committed revision 2.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2321608
Received on 2009-05-20 01:36:30 CEST

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.