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

Re: Diff of only certain file types? Versus WC?

From: Pavel Lyalyakin <pavel.lyalyakin_at_visualsvn.com>
Date: Mon, 28 Nov 2016 21:59:14 +0300

Hello Stefan,

On Mon, Nov 28, 2016 at 9:47 PM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> On 28.11.2016 19:07, David Balažic wrote:
>> Hi!
>>
>>
>>
>> Is there a way to get a diff of all files in a folder (and subfolders),
>> but limited to a certain filetype(name)?
>>
>> Like for only *.txt files.
>>
>>
>>
>> Preferably a comparison between (unchanged) WC and a past revision
>> chosen by user.
>
> Show the log for the WC folder where your txt files are in.
> Then in the filter box, enter ".txt".
> Select the top revision and all revisions up to the past revision you
> want to see the diff. Then select all the files in the bottom pane, then
> right-click and choose "Show multiple changes..."

Wow! I was looking for a way to do what David was asking about and
overlooked this approach. Nice!

But do I really have to scroll all the log entries and select them to view
the changes between e.g. r1000 and r800?

I had another idea that could help, but was unable to find a command in
TortoiseSVN for that. What about diffing a changelist?

In command-line svn.exe I could add the items to diff to a changelist by
running `svn changelist CHANGELISTNAME filepath` and run `svn diff
--changelist CHANGELISTNAME --revision REVNUM`

Here is a PowerShell-flavored example that if ran against WC root will add
all *.txt files to a changelist and will run `svn diff` for all of them
against revision 26500:
[[[
dir -Include "*.txt" -Recurse |
% {svn changelist MyChangeList $_.FullName}

svn diff --cl MyChangeList -r 26500
]]]

-- 
With best regards,
Pavel Lyalyakin
VisualSVN Team
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3195395
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-11-28 20:00:04 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.