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

svn add and inconsistent line endings

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 24 Feb 2013 15:39:18 +0100

Hi,

When auto-props are set up for e.g., cpp files that set the
svn:eol-style property, adding those files is not possible if the file
has inconsistent line endings.
The --force flag won't help either, the only way to add the file is to
first fix the line endings in an editor.
Or add the file with --no-auto-props and then add the properties later.

I think this situation is not good.
Maybe another param added to svn_client_add5 that ignores the EOL check?
Or just pass the 'force' flag on to svn_wc__canonicalize_props() instead
of passing 'false' unconditionally in libsvn_wc\adm_ops.c,
svn_wc_add_from_disk2() ?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
Received on 2013-02-24 15:39:59 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.