Yves Posted September 12, 2012 Report Share Posted September 12, 2012 I've had a problem applying this patch here:http://www.wildfireg...l=&fromsearch=1It failed to patch "utility_functions.js" without giving me any hint about the reason.I finally found out that it's caused by the CR LF line endings of that file. After converting the file to LF line endings the patch applied successfully.SVN has a property called svn:eol-style which can be set to native.This means you get LF line endings on a Unix System and CR LF on a Windows system and it should work on both systems.This has been done manually for some files in the past:http://trac.wildfire...cket=on&wiki=onI think doing it manually is not optimal because people will forget to do it most of the time. However it's possible to configure subversion to do it automatically for files matching a certain pattern (e.g. ending with .xml, .cpp, .h, .js etc...).http://svnbook.red-b...nced.props.autoHas this ever been considered? I don't have much experience with svn properties, but I think that seems to be a good idea. Quote Link to comment Share on other sites More sharing options...
Yves Posted September 15, 2012 Author Report Share Posted September 15, 2012 No answer. Does that mean that nobody with access to the svn config has seen this or did you just not have time to look into it/ didn't prioritize it?Or maybe you don't agree?It's definitely nothing urgent, but it would help to save some time if it works as expected. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted September 15, 2012 Report Share Posted September 15, 2012 I think only Philip would be able to do anything about that. I haven't really noticed any problems so at least from my perspective it's not a high priority issue. You should try to catch Philip in IRC and discuss it with him. He hasn't been reading the forums in months. 1 Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted September 18, 2012 Report Share Posted September 18, 2012 Don't know whether you already spoke with Philip, but I just stumbled upon this reading old logs (this one to be more precise: 2012-05-24-QuakeNet-%230ad-dev.log):13:03 <@Philip`> historicbruno: Git doesn't have per-file properties - it has a global attributes thing that defines e.g. "*.cpp text=auto" and if you've set the config variable core.autocrlf=true then it'll auto-convert those text files from LF to/from CRLF13:04 <@Philip`> (I suppose we really ought to disable the svn:eol-style=native for everything in binaries/data/, because that'll break any kind of file-consistency checksum comparison thing we might implement in the future)13:05 <@Philip`> (but I suppose stuff in source/ should still become CRLF on Windows to make text editors happier)13:08 <@Philip`> I get messages like "warning: LF will be replaced by CRLF in binaries/.../special/grid_subdiv.xml" and special/textures.xml when doing a diff on some local Git branch, and I have no idea what caused that13:08 <@Philip`> (and the diff says every line of those files changed)13:09 <@Philip`> Maybe your thing is a similar problem but it affects random subsets of files, though I have no idea why and that'd seem unusually bizarreAnd if you already spoke with him or will in future, please post results here, so this topic will not have such uncertain end. Quote Link to comment Share on other sites More sharing options...
Yves Posted September 30, 2012 Author Report Share Posted September 30, 2012 Since the plans about migrating to git are becoming more concrete I'm going to wait with that toipic for a while. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.