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

Re: Creating a branch based on an older revision/snapshot

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-09-07 02:32:24 CEST

On Sep 6, 2006, at 19:38, asdf wrote:

> Is it possible to create a branch based on an older revision/snapshot?
>
> From what I've read in the Subversion book, it appears to be
> possible...
>
> let's say that the HEAD revision is currently 78 but I want to create
> a branch based on the repository as it existed in revision 59.
>
> It should then be possible to backdate my working copy to revision 59
> (or checkout a new copy at revision 59), and then copy off of that
> to create a new branch so that the branch is identical to the trunk
> as it existed in revision 59?

I assume you mean "based on the trunk of the project as it existed in
revision 59."

I would just do it via URL. Seems easiest.

If $PROJ is the URL to your project (for example, https://
www.example.org/svn/some_project) then you could say:

svn cp -r 59 $PROJ/trunk $PROJ/branches/new_branch_name

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 7 02:34:01 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.