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

Reverting to an older revision for a single file

From: Larry Martell <larry.martell_at_gmail.com>
Date: 2007-04-05 22:33:00 CEST

If I have a project and I want to revert back to an older version of one file,
what is the best way to do that?

Here's a specific example:

Let's say the head revision of my project is at 100, and I want to get revision
90 of file.c and check that in at the head and have version 101. I tried this:

svn up
svn -r90 up file.c
svn ci

The ci silently did nothing at all.

What I had to do to get this to work was:

svn up
svn -r90 up file.c
mv file.c file.c.90
svn up
mv file.c.90 file.c
svn ci

Is that the proper way to do this, or is there a better way?

TIA!
-larry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 5 22:33:23 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.