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

Re: Identifying copies in other branches

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-07 20:18:26 CEST

On Oct 6, 2005, at 17:07, <clarka@postfinance.ch>
<clarka@postfinance.ch> wrote:

> I have created serveral release branches of my source by using svn
> copy.
>
> Now when examinig a file in the trunk I would like to identify
> which branches contain this file, i.e. which releases changing this
> file will affect.

Perhaps you're just using different terminology than I would, but
just to be clear: changing a file in trunk will not change it in the
branches or tags to which it was previously copied. Files in the
repository don't change until you change them. If you make a copy of
a file, then you have a second autonomous copy.

> In cvs I can simply examine the repository tags for the file,
> however in svn I to have to check if the file exists in a given
> branch and then use svn diff to see if it is the same.
>
> Is there a simpler way in svn for do this test?
>
> Futhermore, as the svn copy creates a file with a different
> revision, this means I have to use svn diff although it is the same
> file, just in another branch.
>
> Is there a way to test if one file is infact a copy of another?

Try

$ svn log --stop-on-copy -v foo

If foo is a copy of something else, the last log entry should tell
you what it's a copy of.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 7 20:21:13 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.