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

RE: Q: Changeset between two revisions

From: Manickavel, Senthil <senthil.manickavel_at_philips.com>
Date: Mon, 8 Feb 2010 04:09:09 +0100

Hi Daniel,
        This command just gives the list of files changes. My requirements is to collect the files changes list and collect the listed files in both the revisions. Do u have any idea to do this?

With Regards,
Senthil

-----Original Message-----
From: Daniel Widenfalk [mailto:Daniel.Widenfalk_at_iar.com]
Sent: Friday, February 05, 2010 11:36 PM
To: users_at_subversion.apache.org
Subject: Re: Q: Changeset between two revisions

Hi,

Manickavel, Senthil wrote:
> Hi,
> I would like to create a changeset between
> two revisions. I have created a script to do that with
> svn commands. But this collects all the files in both
> the revisions. Is it possible for me to collect only
> the changed file?
>
> Script
>
> REM Create root folder
> md Changeset
> cd Changeset
>
> REM Collect old revision files.
> md %1
> cd %1
> svn checkout -r %1 %3
>
> REM Collect new revision files.
> cd..
> md %2
> cd %2
> svn checkout -r %2 %3
>
> REM Create changed files list
> cd..
> svn log -r %1:%2 %3 -v > ChangedFiles.txt
> cd..
>
> Regards,
> Senthil

A quick "svn help diff" shows a --summarize option.

Try

   "svn diff -r rev1:rev2 http://URL-to-repo --summarize"

and see if it matches your need. You may need to filter
the output slightly.

Regards
/Daniel

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Received on 2010-02-08 04:09:30 CET

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.