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

Re: Server side copy, will history be copied too?

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Fri, 27 Sep 2019 16:41:38 -0400

On Fri, Sep 27, 2019 at 12:51 PM Bo Berglund <bo.berglund_at_gmail.com> wrote:
>
> I need to create a project in the repository where I will use files that have been worked on in different test projects. All projects are part of the same repository.
>
> So in the new project I will have both new files and files from two existing projects within the repository.
> I know I could export the existing files into a directory on the client and collect the
> old and new files here and then create the new project from this directory.
> But then there is no history available for the old files preceding the current time...
>
> I wonder if I will get the history along with the files if I make a server side copy:
>
> svn cp <oldprojecturl>/filename <newprojecturl>/filename
>
>
>
> Best Regards,
>
> Bo Berglund

Short answer: Yes.

Long answer: A server side copy is the same mechanism you use to make
branches and tags. Subversion doesn't really care about the reason for
the copy; it automatically follows the line of history, for example if
you later do 'svn log filename' (unless you use the --stop-on-copy
argument to svn log).
Received on 2019-09-27 22:51:57 CEST

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.