[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: Daniel Widenfalk <Daniel.Widenfalk_at_iar.com>
Date: Fri, 05 Feb 2010 19:05:58 +0100

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
Received on 2010-02-05 19:06:40 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.