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

Re: mv != (cp && rm)

From: Tom Rini <trini_at_kernel.crashing.org>
Date: 2001-11-28 00:43:03 CET

On Tue, Nov 27, 2001 at 05:01:22PM -0600, Karl Fogel wrote:
> Mattias R?nnblom <hofors@lysator.liu.se> writes:
> > currently, svn mv is implemented by adding a new node and and
> > removing the old. This means that a file that is moved get
> > a new id, and there is now way of know wheter it is a actual
> > copy of the node in question, or if the user only wanted to
> > change the name of the node.
>
> Yes, there is a way -- the "history" is preserved in the repository.
> The newly created node knows that it is derived from the old node.
> See the `copy properties' in libsvn_fs.

Hello. From a user who's using a version control system that has a 'mv'
command, in subversion if we move trunk/dir1/a to trunk/dir2/a, on the
repository side we get a copy and rm of the old, but the history is
preserved, yes? As along as the user can see what happened to
trunk/dir2/a whenit was trunk/dir1/a, I don't think it matters if we
'move' the file or 'copy and delete original'.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:49 2006

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