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

Re: Determining file(s) modified in a changeset

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Thu, 15 Apr 2010 16:21:26 -0500

On 4/15/2010 4:09 PM, David Bartmess wrote:
> On 4/15/2010 2:17 PM, Bob Archer wrote:
>>> I need to modify a script that was used with CVS that basically got a
>>> list of the files that changed with a specific tag, and acted upon them.
>>> Now we're moving to Subversion, and I need a way to get a list of files
>>> that changed with a tag or revision.
>>>
>>> Should I just force the developers into using the revision instead of
>>> the tag? The tag contains every file in that module, so it doesn't help
>>> in this matter.
>>>
>>> And is there a way to get a list of files that changed with a changeset
>>> (revision) without having to heavily parse the log output?
>>> I need to list the files that changed in a file to be consumed by
>>> another process, and the file contents need to be just the filename one
>>> on each line. Is there an easy way to do this?
>>>
>>> Thanks!
>> We use cruise control .net and a build runs every time there is a
>> change in svn. The build report shows all the files that were changed
>> and includes the change log message. So, I'm sure there is a way.
>>
>
> Yep, I found a one-liner to do this..
> svn log -q -v -r <rev> <url> | sed -e "s/^ .* //" | egrep -v
> "^r[0-9]*|Changed Paths:|-----"
>
> This gives me an output looking like
> this:/ApiTsBridge/trunk/build.properties
> /ApiTsBridge/trunk/build.properties
> /ApiTsBridge/trunk/build.xml

Isn't that going to give you just the list of files that changed in the
commit resulting in that revision number? Where it is moderately
common for multiple commits to happen between tagging or even buildable
versions...

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-04-15 23:21:56 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.