[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 obtain a list of modified, added, or deleted files?

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Mon, 23 Jun 2008 18:01:54 -0700

On Mon, Jun 23, 2008 at 5:37 PM, Stephan Hoffmann <shh_at_twmi.rr.com> wrote:

> Hi,
>
> Is there a simple way to get the differences between two revisions without
> getting the details of what changed in modified files?
>
> If I do
> svn diff TARGET TARGET_at_593
>
> I get the differences between the head revision and revision 593 of TARGET,
> including all the changes within a file.
> All I want is a list of added, deleted, or modified files.
> I can of course extract this information from the complete change list, but
> that's an additional step I don't want to perform, not to mention that the
> diff takes a LOT of time.
>
> I want to use this to update my webserver. Maybe there is a better way?
> Here is what I do: I have all my web pages in Subversion. I used to host
> my web pages on an old Linux machine of mine, which happened to be my
> Subversion server as well. So updating my web server after committing
> my changes to the repository was as simple as typing "svn update".
>
> Now my web pages are hosted by a web hosting company. Getting
> the files there initially was simple, I exported from the repository
> and then copied all the files via ftp.
>
> But when I change something now, I have to remember which files I changed
> or added (or deleted, far less frequent).
>
> Any hints appreciated.

The --summarize option to diff will show the result of the diff (the files
changed) as opposed to the diff themselves. You will still have to parse the
output to group them as added, modified or deleted.

regards,
-Hari
Received on 2008-06-24 03:02:54 CEST

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.