Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > simultaniously commit sibling directories

subversion
Discussion topic

Back to topic list

simultaniously commit sibling directories

Author jablko
Full name Jack Bates
Date 2009-05-19 15:29:09 PDT
Message 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@tad:~$ svnadmin create test
jablko@tad:~$ svn co file:///`pwd`/test wc
Checked out revision 0.
jablko@tad:~$ svn mkdir wc/a wc/b
A wc/a
A wc/b
jablko@tad:~$ svn ci wc -m ''
Adding wc/a
Adding wc/b

Committed revision 1.
jablko@tad:~$ svn mkdir wc/a/c wc/b/d
A wc/a/c
A wc/b/d
jablko@tad:~$ (cd wc/a && svn ci -m '' &) && (cd wc/b && svn ci -m '' &)
jablko@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.

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

simultaniously commit sibling directories jablko Jack Bates 2009-05-19 15:29:09 PDT
     RE: simultaniously commit sibling directories rhuijben Bert Huijben 2009-05-20 00:28:10 PDT
Messages per page: