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

Re: Filenames with trailing newlines wreak havoc

From: Ben Reser <ben_at_reser.org>
Date: Tue, 26 Mar 2013 16:39:57 -0700

On Tue, Mar 26, 2013 at 12:47 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> We've noted on IRC that this might fail if /foo and /foo\n get modified
> in the same revision.

Actually at least with FSFS the commit will fail in that case because
FSFS will believe you tried to add the same file twice.

However, this pre-commit script (which requires the Python bindings)
should catch all the variations. It also checks for other control
characters, but you can easily change that by changing the
control_chars set at the top of the file.

Received on 2013-03-27 00:40:35 CET

This is an archived mail posted to the Subversion Dev mailing list.

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