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

Commit failed, file out of date error

From: Nafter <HdOude_at_allshare.nl>
Date: Tue, 9 Jun 2009 23:50:03 -0700 (PDT)

I'm using maven and within maven I use ANT (maven-ant-plugin).
In ANT I have some actions to:

1) entirely delete 3 directories on the server
2) recreate the same 3 directories again, and do a checkout on 3 different
svn urls.
3) now just to be sure I do an svn update on the 3 directories again.
4) now I copy across a new version.txt file which is present in all of the 3
directories.
    I just want to overwrite the version.txt with a newer version of that
file.
5) After the copying I want to commit the 3 directories again.

Result ?

1 out of 5 times this is working correctly. But in all the other situations
I receive always the following error:
 [exec] Sending _composer5\pvmeta\pv50\version.txt
     [exec] svn: Commit failed (details follow):
     [exec] svn: File or directory 'version.txt' is out of date; try
updating
     [exec] svn: The version resource does not correspond to the resource
within the transaction. Either the requested version resource is out of
date (needs to be updated), or the requested version resource is newer than
the transaction root (restart the commit).
     [exec] Result: 1
    
Can somebody help me with this. Because I really need to commit the new
version of the file version.txt!

Here is a complete stack trace of this error:
[INFO] Executing tasks
[echo]
[echo] DELETE KERNEL PVMETA DIRECTORIES
[echo]
-----------------------------------------------------------------------------------
[echo] Delete pv50
[echo] Delete pv50_interface
[echo] Delete pv50_selfservice
[echo] Delete pv50_unittest
[echo]
[echo] CHECKOUT KERNEL PVMETA DIRECTORIES
[echo]
-----------------------------------------------------------------------------------
[echo] Checkout pv50
[echo] Checkout pv50_interface
[echo] Checkout pv50_selfservice
[echo] Checkout pv50_unittest
[echo]
[echo] UPDATE KERNEL PVMETA DIRECTORIES
[echo]
-----------------------------------------------------------------------------------
[echo] Update pv50
[echo] Update pv50_interface
[echo] Update pv50_selfservice
[echo] Update pv50_unittest
[echo]
[echo] UPDATE VERSION.TXT FILES WITH CORRECT BUILD ID
[echo]
-----------------------------------------------------------------------------------
[echo] Copy version.txt template to _work directory...
[copy] Copying 1 file to c:\_composer\_work
[echo] Edit version.txt to reflect current build id...
[echo] Overwrite new version.txt in pvmeta kernel directories...
[copy] Copying 1 file to c:\_composer\_composer5\pvmeta\pv50
[copy] Copying 1 file to c:\_composer\_composer5\pvmeta\pv50_interface
[copy] Copying 1 file to c:\_composer\_composer5\pvmeta\pv50_selfservice
[echo]
[echo] COMMIT VERSION.TXT FILES IN PVMETA DIRECTORIES
[echo]
-----------------------------------------------------------------------------------
[exec] Sending _composer5\pvmeta\pv50\version.txt
[exec] svn: Commit failed (details follow):
[exec] svn: File or directory 'version.txt' is out of date; try updating
[exec] svn: The version resource does not correspond to the resource within
the transaction. Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than the
transaction root (restart the commit).
[exec] Result: 1
[exec] Sending _composer5\pvmeta\pv50_interface\version.txt
[exec] svn: Commit failed (details follow):
[exec] svn: File or directory 'version.txt' is out of date; try updating
[exec] svn: The version resource does not correspond to the resource within
the transaction. Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than the
transaction root (restart the commit).
[exec] Result: 1
[exec] Sending _composer5\pvmeta\pv50_selfservice\version.txt
[exec] svn: Commit failed (details follow):
[exec] svn: File or directory 'version.txt' is out of date; try updating
[exec] svn: The version resource does not correspond to the resource within
the transaction. Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than the
transaction root (restart the commit).
[exec] Result: 1

Thanks in advance for your help.

Nafter

-- 
View this message in context: http://www.nabble.com/Commit-failed%2C-file-out-of-date-error-tp23956714p23956714.html
Sent from the Subversion Users mailing list archive at Nabble.com.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2360806
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-10 08:55:16 CEST

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.