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

Re: How do I know a file has moved ?

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Thu, 7 May 2009 15:58:04 -0500

On May 7, 2009, at 15:27, Sim Tong wrote:

> Andy Levy wrote:
>> On Thu, May 7, 2009 at 11:15, Sim Tong wrote:
>>> When I look at the changeset via the command svn log
>>> <URL> -vq -r <revision>, I have some appended
>>> files.
>>> how do I know that these added files are actually
>>> added and not moved from another directory ?
>>> (PS: I do not have access to svnlook history command
>>> as I do not have access to the SVN repository)
>> If it's been moved, there will be a delete
>> corresponding to the add,
>> in the same revision.
> However, let's assume that I have (as an initial state.
> src1/foo.c
> src2/
> src3/foo.c
> If I move foo.c from src1 to src2, svn status will show:
> !src1/foo.c
> ?src2/foo.c
> If, at the same time I remove src3/foo.c, I will have :
> !src1/foo.c
> ?src2/foo.c
> !src3/foo.c
> How will I know that foo.c moved from src1 to src2 and not from
> src3 ???
> Sorry if my question is non-sense. I am new to SVN.

That's a totally different question than the one we thought you were
asking initially.

Initially, you were asking about "svn log" which has to do with
things in the repository that have already been committed.

But here, you are asking about things in a working copy which have
not yet been committed.

The answer is you cannot tell, and shouldn't attempt to do so. See
this FAQ:


So, don't move src1 to src2 by using regular OS tools. Instead, "svn
mv" src1 to src2.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-07 22:58:59 CEST

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