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

Re: svn rename & move ?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-18 14:57:40 CEST

On May 18, 2005, at 2:17 AM, Tim Alsop wrote:

> I don't think the history of the new file is linked to the history
> of the file with old name.
>

1. Subversion has no renames; it has 'copy and delete'.

    'svn rename A B' == 'svn copy A B; svn delete A'

2. Copies connect history. If you run 'svn log B', you'll still see
the history of the thing back when it was named A. Similarly, if you
run 'svn log branchURL', history will be traced back to the trunk.
(Assuming the branch was created by copying trunk.)

3. Copying something doesn't duplicate the thing (space-wise) in the
repository. Within the repository database schema, the moral
equivalent of a hard-link is created. (It's actually a bit more
complex than that.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 18 15:00:12 2005

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.