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

Re: How to move folder from one path to another along with all revisions

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sat, 21 Feb 2015 13:29:37 -0500

On Fri, Feb 20, 2015 at 2:07 PM, Mohsin <mohsinchandia_at_gmail.com> wrote:
> Thanks all for your reply i'll try with svn mv command and get back to you if
> face any issue.
>
>
> Mohsin

There are a number of underlying reasons for this. It's partly that
the "mv" command isn't really a "mv", it's a "copy, then delete the
old one", and subversion does not discard history of deleted content.
This can actually cause fascinating problems trying to trace the
history of things.

If I may suggest, for bulky changes such as re-arranging a source
tree? Don't use "svn mv". Do it as several distinct transactions, one
an "svn tag" to record the old layout, then an "svn copy", then "svn
rm", then "svn tag" aagin to record the new layout for reference. This
can help reflect the transaction, and allow much easier historical
analysis.
Received on 2015-02-21 19:30:06 CET

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.