[josm-dev] Latest patches and plans for next week(s)
Karl Newman
siliconfiend at gmail.com
Fri Oct 19 17:00:32 BST 2007
On 10/19/07, Frederik Ramm <frederik at remote.org> wrote:
> Hi,
>
> >> * make line endings the same on all source files - this will lead
> >> to a major SVN commit with 90% of all files changed but no
> >> change in
> >> functionality.
> >>
> > I don't know the problem you're going to fix for JOSM here (I
> > didn't see any mails with problems ;-), but Subversion may be able
> > to help you here.
> >
> > At the Wireshark project, we set the subversion eol-style=native
> > property of each source file.
>
> Sounds good. In JOSM, we seem to have a number of files where line
> endings are actually mixed due to patches/commits by various people.
> If SVN can fix that for us, all the better.
Actually, it's even better than that. Once you have the eol-style
property set correctly (native is probably what you want for most
files, although I think Makefiles must be unix-style), SVN will
prevent you from checking in a file with inconsistent or mixed line
endings. Without it, it can lead to a lot of file thrashing just
because of line ending changes (I used to get that a lot with CVS).
dos2unix and unix2dos are your friends here--they'll fix even mixed
line endings.
You might look into autoprops (I think it's part of your .svn config
file). You can set it up so properties like the eol-style will
automatically be set on files as they are added to the repository.
More information about the josm-dev
mailing list