ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nafter <HdO...@allshare.nl>
Subject Subversion Commit failed, file out of date error
Date Wed, 10 Jun 2009 06:57:35 GMT

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/Subversion-Commit-failed%2C-file-out-of-date-error-tp23956800p23956800.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message