[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: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Tue, 19 Aug 2014 16:26:03 -0500

On Tue, Aug 19, 2014 at 12:34 PM, Simon Large <simon.tortoisesvn_at_gmail.com>
wrote:

> 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.
>
>
Using 1.8.x, the dialog itself claims I can search by regular expression.
The drop-down by the filter has "use regular expressions" checked, I can
uncheck it if I choose. Hovering over the filetr box shows regular
expression help, including "$" for "end of line", "\s" for whitespace, and
a lot of other stuff.

Or maybe you're saying the regular expression doesn't apply to the path
string? "externals\s" matches log messages which have "externals" followed
by whitespace.

> >
> > 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.
>
>
>
Thanks, I should have thought of that. I'll try that next time I need it.

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

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

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.