You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Paul Austin <ma...@revolsys.com> on 2006/03/22 20:05:10 UTC

List files that were changed between two branches

I have a requirement to list all the files that have changed from one
version of the application and the next. Each version of the application
has a tag for the release (e.g. tags/1.1.3).

What I would like is a command where I could get a list that shows the
files that were changed, those that were added and those that were
deleted. Here is my simple solution to the problem. Unfortunately I
found out today that I get different results if I swap the source and
target tag arguments.


#!/bin/bash

REPOSITORY=<url to repository>
APP=$1
VER1=$2
VER2=$3

svn diff $REPOSITORY/$APP/$VER1 $REPOSITORY/$APP/$VER2 | grep Index: | awk '{ print $2} '|sort


I think what would work is if the svn switch command had a pretend
option so it showed the changes but did not actually do the switch.

Any thoughts on how to do this? Or if SVN itself could be extended to
add this functionality.

Cheers,
Paul

Re: List files that were changed between two branches

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 22, 2006, at 21:05, Paul Austin wrote:

> What I would like is a command where I could get a list that shows  
> the files that were changed, those that were added and those that  
> were deleted. Here is my simple solution to the problem.  
> Unfortunately I found out today that I get different results if I  
> swap the source and target tag arguments.

I believe you are running into this bug:

http://subversion.tigris.org/issues/show_bug.cgi?id=2333




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

Re: List files that were changed between two branches

Posted by Mark Phippard <ma...@softlanding.com>.
Paul Austin <ma...@revolsys.com> wrote on 03/22/2006 03:05:10 PM:

> I have a requirement to list all the files that have changed from one 
version 
> of the application and the next. Each version of the application has a 
tag for
> the release (e.g. tags/1.1.3).
> 
> What I would like is a command where I could get a list that shows the 
files 
> that were changed, those that were added and those that were deleted. 
Here is 
> my simple solution to the problem. Unfortunately I found out today that 
I get 
> different results if I swap the source and target tag arguments.

> 
> #!/bin/bash
> 
> REPOSITORY=<url to repository>
> APP=$1
> VER1=$2
> VER2=$3
> 
> svn diff $REPOSITORY/$APP/$VER1 $REPOSITORY/$APP/$VER2 | grep Index: | 
awk '{ 
> print $2} '|sort
> 

> I think what would work is if the svn switch command had a pretend 
option so 
> it showed the changes but did not actually do the switch.
> 
> Any thoughts on how to do this? Or if SVN itself could be extended to 
add this
> functionality.

I believe that this feature has been implemented in trunk so will be 
included in 1.4.

I think it is implemented as:

svn diff --summarize

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

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