Thread (38 messages) flat view 38 messages, 3 authors, 2016-06-15

Re: [PATCH 3/7] Extract, test and enhance the logic to collapse ../foo paths.

From: Eric Wong <hidden>
Date: 2016-06-15 22:54:52

Jonathan Nieder [off-list ref] wrote:
Hi,

Michael G Schwern wrote:
quoted
On 2012.7.30 12:51 PM, Eric Wong wrote:
quoted
Michael G Schwern wrote:
quoted
quoted
quoted
_collapse_dotdot() works better than the existing regex did.
I don't dispute it's better, but it's worth explaining in the commit
message to reviewers why something is "better".
Yeah.  I figured the tests covered that.
Now I'm tripping up on the same thing.  Eric, did you ever find out
what the motivation for this patch was?  Is SVN 1.7 more persnickety
about runs of multiple slashes in a row or something, or is it more
of an aesthetic thing?
I'm not sure about this case specifically, but SVN has (and will likely
become) more persnickety over time.  I haven't had a chance to check SVN
itself, but I think being defensive and giving it prettier paths will
be safer in the future.

That said, I'd favor an implementation that split on m{/+} and
collapsed as Michael mentioned.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help