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

RE: Undoing a commit / replace file with an older revision

From: Ramaraj Subramanian <ramarajs_at_virtusa.com>
Date: 2006-04-18 13:58:12 CEST

Hi Graham,

First delete the broken file and check in the reverted file at this
location

Thanks & Regards,
Ramaraj S.
Software Engineer
Ext. No. 3377
Mobile : 91- 98408 - 20796
 
-----Original Message-----
From: Graham Leggett [mailto:minfrin@sharp.fm]
Sent: Tuesday, April 18, 2006 5:23 PM
To: users@subversion.tigris.org
Subject: Undoing a commit / replace file with an older revision

Hi all,

I have a file which has been broken and subsequently committed to my
repository. I now want to revert to the previous version.

Both Subclipse' "replace with", and svn update -r<revision> allow me to
revert my file to the revision I specify.

The trouble is, I cannot commit this - because svn complains the file
isn't up to date, so you run svn update, which in turn reverses the
"replace with" and you're back to the broken file you started with.

I can at the moment replace the file with the older version, copy that
file outside the repo, run svn update, and then copy the file back into
the repo over the file and commit that, but that's very klunky.

What is the "correct" way to do this? I couldn't not find anything
obvious
in the svn book that covered this.

Regards,
Graham

--
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 18 14:04:51 2006

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.