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

How do I determine if a commit of a property change will succeed

From: Martin Tomes <lists_at_tomes.org>
Date: 2007-03-08 17:28:26 CET

I am trying to write a script to automate our branching procedure which
uses svnmerge. Therefore I have to run svnmerge init followed by an svn
commit of the top level directory property change. The problem is that
if someone has made a change to the contents of that directory and
committed the change but has not done an update the commit will fail
because the directory is out of date.

Is there any way (using the command line svn client) that I can work out
in advance that this commit will fail?

svn info of the directory and its contents give no clue that the update
is needed.

To spell it out, if I have a file structure like this:


and I delete d2 and commit d1.

Then I do:

svnmerge init -f commitmsg.txt
svn commit --non-recursive --file commitmsg.txt .

The svn commit will fail.

Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
Visit http://www.subversionary.org/
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 8 17:29:01 2007

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.