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

Re: List files that were changed between two branches

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-03-22 21:08:05 CET

Paul Austin <mail-lists@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
Received on Wed Mar 22 21:12:17 2006

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