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

Re: How to filter on last path component

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Tue, 19 Aug 2014 18:34:26 +0100

On 19 August 2014 17:58, Ben Fritz <fritzophrenic_at_gmail.com> wrote:
> I'm trying to set a filter on the "show log" dialog to only show changes to
> a folder itself, not its children (mostly property changes).
>
> I thought I could accomplish this using a regular expression filter, to make
> sure the folder name is at the end of the string (because it is the last
> item in the path).

In 1.8.x it is not a regex. Hover the mouse over the filter box to see
how it works.

> But I am not having any success.
>
> My folder is called "externals", it's in /Path/to/project/trunk/externals.
>
> Using filter "externals" without the quotes shows the results I want, but
> also commits I don't want, that changed files or subdirectories under this
> directory.
>
> Using filter "externals$" without the quotes gives zero results. I expected
> this to match "externals" at the end of the path string (there are several
> revisions where this should be the case).
>
> So I thought, maybe the string matched is actually a combination of the
> fields, separated by whitespace or something, and tried "externals\s". The
> only result this gives me is where the log message contains the word
> "externals", it does not give any results for where the path contains the
> externals directory. I can make it have zero results if I uncheck the
> "messages" checkbox in the filter options.
>
> How can I properly construct a filter that matches the end of a path string?

Try /externals -/externals/

That should include items containing the word "/externals" but exclude
any that have a trailing /, indicating something other than the
folder.

Simon

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3086907

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-08-19 19:34:52 CEST

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