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

Cannot commit after failed attempt, how to recover?

From: Phil Endecott <spam_from_subversion_users_at_chezphil.org>
Date: 2007-06-04 23:56:07 CEST

Dear All,

I tried to commit changes to three files:

- OMakefile has changes.
- WorldView.cc has changes.
- WorldView_photos.cc is an 'svn copy' of WorldView.cc, with further changes.

The commit failed:

$ svn commit -m"Split out WorldView_photos"
Sending src/OMakefile
Sending src/WorldView.cc
Adding src/WorldView_photos.cc
Transmitting file data ...svn: Commit failed (details follow):
svn: MERGE request failed on '/pictureframe/trunk/src'
svn: MERGE of '/pictureframe/trunk/src': Could not read status line:
Connection reset by peer (http://svn.chezphil.org)

I don't blame Subversion for this; on investigation it turned out that
the server had an enormous load average due to someone trying to spam /
hack a PHP forum. They weren't succeeding, but Apache was obviously
working hard to defeat them. I waited a bit for the load to come back
down and tried again:

$ svn commit -m"Split out WorldView_photos"
Sending src/OMakefile
svn: Commit failed (details follow):
svn: Your file or directory 'OMakefile' is probably out-of-date
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).

Hmm, well I read the message and thought "an update can't do any harm"...

$ svn update
G WorldView.cc
G OMakefile
svn: Failed to add file 'WorldView_photos.cc': object of the same name
already exists

Not looking good but I'll try to commit anyway...

$ svn commit -m"Split out WorldView_photos"
Adding src/WorldView_photos.cc
svn: Commit failed (details follow):
svn: File '/pictureframe/trunk/src/WorldView_photos.cc' already exists

Well there's always that mysterious "cleanup" command:

$ svn cleanup
$ svn commit -m"Split out WorldView_photos"
Adding src/WorldView_photos.cc
svn: Commit failed (details follow):
svn: File '/pictureframe/trunk/src/WorldView_photos.cc' already exists

Right, I could just keep throwing random commands at it in the hope
that it recovers, but I know from previous experience that that can get
me in deeper trouble! So, what do you experts suggest?

This is with 1.4.2 (r22196) on the client and 1.2.3 (r15833) on the
server (using FSFS) (hmm, probably about time I upgraded that), both
Debian systems.

Any help would be very much appreciated.

Regards,

Phil.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 4 23:56:32 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.