[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-08-20 18:21:23 CEST

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.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 20 18:23:10 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.