You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by cl...@postfinance.ch on 2005/10/06 15:07:01 UTC

Identifying copies in other branches

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.

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?

regards

Andrew Clark

------------------------------------------------------------------------
-----------------
Die schweizerische Post
PostFinance PF 52
Engehaldenstr. 39
3030 Bern 

Tel.     +41 (0)31 338 35 13
Fax     +41 (0)31 338 87 70
malito: clarka@postfinance.ch
------------------------------------------------------------------------
-----------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Identifying copies in other branches

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 6, 2005, at 17:07, <cl...@postfinance.ch>  
<cl...@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