[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: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Tue, 24 Jun 2008 01:16:18 -0500

On Jun 23, 2008, at 20:37, Stephan Hoffmann wrote:

> Hari Kodungallur wrote:
>
>> On Mon, Jun 23, 2008 at 5:37 PM, Stephan Hoffmann wrote:
>>
>>> Is there a simple way to get the differences between two revisions
>>> without getting the details of what changed in modified files?
> [...]
>
>> 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.
>
> Thanks! Exactly what I was looking for.
> ... and it's right there in the help. In my defense, the first edition
> of the O'Reilly book on Subversion, which is the one I have,
> doesn't list this option.

That's because the option didn't exist until Subversion 1.4 which the
first edition of the book predates.

>>> 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).

A better way would be to use rsync to synchronize your local copy
with the one on the web server.

Or, have a working copy of your project on your web host, and in your
repository's post-commit hook, update the working copy on the server
with something like "ssh server 'svn up /path/to/workingcopy'". This
would require your repository to be on the Internet so that your web
host can reach it. It would also require the Subversion client to be
on the web host.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-24 08:16:44 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.