svn删除文件时:Item “” is out of date
Itemisoutofdate
svn:Commitfailed(detailsfollow):
svn:Item'/banksystem/Mmoney/trunk/src/tpme/MEBS/timebargain/tradeweb/dao'isoutofdate
遇到这个错误原因是本地的资源文件版本不是服务器上面最新的版本,因此修改本地文件再提交时候,就会报Outofdate错误。
解决办法,修改文件时候一定要首先保证和服务器一致,再做修改;而此时需要先将本地文件还原(记着备份哦),再更新和服务器一致后再做修改。
http://stackoverflow.com/questions/2805546/svn-item-folder-is-out-of-date
Wheneveryousee"outofdate"inanerrormessageitmeansthattherevisionoftheitemintherepositoryisnewerthanthecopyinyourlocalworkingcopy.
Thesolutionisalwaysgoingtobetorunanupdate,sothatyourworkingcopyisuptodatewiththerepository,andthendothecommitagain(assumingthattheupdatedidnotgenerateanyconflicts).
Forfiles,thisisusuallyprettyeasytounderstandhowandwhythishappens.However,Subversionalsoversionsfolders,anditisusuallywithfoldersthatthisproblemmostoftenhappens.
Subversiondoesnotallowyoutodelete/renameafolderORchangeitsversionedproperties,UNLESSthelocalcopyofthefolderisattheHEADrevisionofthefolderintherepository.
Yournextquestionmightbe:
"OK,Icanmaybeunderstandthat,butwhyismyfolderoutofdate?Iamtheonlypersonworkinginthisrepository."
Thatisavalidquestion,theanswerliesinthewaythatSubversionworks.
Whenyoucommitachangetoafile,therevisionofthefileinyourworkingcopyisupdatedtothatnewrevisionwhenthecommitcompletes,howevertheversionoftheparentfolder(s)ofthatfileisnotupdated.
Thisisbecausetheremayhavebeenadds/deletestootherfilesinthatfolderanduntilyouhaverunanupdate,thefolderisnotreallyatthatnewrevision.
Thisiscalled"mixedrevisionworkingcopies".
Insummary,theanswerisalwaystodoanupdatesothatthefolderorfileisupdatedtoitsHEADrevision.