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

RE: Square brackets in file names and authz (in VisualSVN 2.5.5)

From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 12 Jul 2012 11:45:58 +0200

[Please try to keep the mails in plain-text]

 

The problem with using a ‘\’ would be that you break the ‘\’ character in existing files to fix ‘]’.

 

Things might be simpler when defining that lines that start with ‘[‘ and end with ‘]’ should parse everything in between as section markers.

 

But then, I don’t know how that affects the current comment syntax.

 

 

We should really check the source before making a decision.

 

                Bert

 

 

From: Jason Heeris [mailto:jason.heeris_at_gmail.com]
Sent: donderdag 12 juli 2012 11:37
To: Johan Corveleyn
Cc: Matthew Pounsett; users_at_subversion.apache.org
Subject: Re: Square brackets in file names and authz (in VisualSVN 2.5.5)

 

On 12 July 2012 17:28, Johan Corveleyn <jcorvel_at_gmail.com> wrote:

I think the only character that causes problems is ']' (which ends the

section name parsing). It seems not too hard to change that parsing
function to make it handle some kind of escape sequence for ']'
(perhaps ']]'). Would you care to write a patch [2]?

 

I doubt I'll have time to write a patch any time in the next few days, but I'll file the bug now and take a look at writing a patch next week.

 

I'd suggest avoiding inconsistencies like the double-]. I certainly wouldn't think to try that. It might be better to use a backslash sequence, or simply capture everything up to the *last* "]" on a line instead of the first. I don't think that would be more complex than needing to detect a "]]" ...but then, I haven't written the patch :P

 

— Jason
Received on 2012-07-12 11:46:42 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.