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

Re: how to get a file copied from earlier revision to HEAD

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-08-20 20:00:39 CEST

On Tue, Aug 20, 2002 at 11:21:23AM -0500, Ben Collins-Sussman wrote:
> solo turn <soloturn99@yahoo.com> writes:
> > what is the simplest way to get a file from an earlier revision to
> > HEAD again? i had to do a "svn rm --force file" to get a clear
> > working copy (the file was in repository, and on filesystem, but not
> > in the .svn).
> I'm not sure what you're trying to do; is the file actually missing
> in the head revision tree? If so, you can just do a repos-to-repos
> copy of the file from an older revision:
> svn cp -rOLD_REV http://path/to/file http://path/to/new/parent
> This performs an immediate commit.

No need to force a commit(!). Copy it into a WC:

$ svn cp -rOLD_REV http://whatever .
$ do more work
$ svn commit -m "revive an old file"


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 20 19:56:57 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.