When developer commit changes from Windows machine, the commit introduces “^M end of line character” which shows huge difference when it comes to do syncs/merges OR the file is opened on Linux machine.
I want to set svn property like “svn propset -R svn:eol-style native *.c *.cpp *.h *.sln *.vcproj”.
Does anyone have the the sample pre-commit hook (in Perl) for checking the properties? I understood that the commit should be aborted if the file(s) with specific extensions does not have properties set.
I’ve few questions on this.
1) How do I set this property at top level? Do I need to check out the code from HEAD and set this property and commit?
2) Developers might have checked out lots of code. If I set this property, how the commits from developers behave? Will developers need to update their sandboxes (to get the prop changed files) first before committing already checked-out code?
Any other suggestion would be great.
Thanks.
No comments:
Post a Comment