View previous topic :: View next topic |
Author |
Message |
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Mon Jun 23, 2008 12:09 am Post subject: Newlines |
|
|
There seem to be many files in
Doost that contain a mixture of DOS and Unix style newlines.
It seems to be mostly DOS with a smattering of Unix here and there.
Please pick one and stick with it.
I think there is some kind svn property you can set to keep it
consistent. Something like "eol-style: native". Here's an example I
found from Apache:
http://www.apache.org/dev/svn-eol-style.txt |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Tue Jun 24, 2008 2:22 am Post subject: |
|
|
From Don, on a recent digitalmars.D.bugs post:
Code: |
> Please hold off on the line termination thing; we're trying to find an
> automated way of maintaining those among people working on different OSs.
You can set up preferences in Subversion to automatically convert them.
You need to set these values in the config file:
(On TortoiseSVN, you reach it through the edit button on the settings:general pane)
[miscellany]
enable-auto-props = yes
[auto-props]
*.d = svn:eol-style=native
*.ddoc = svn:eol-style=native
|
|
|
Back to top |
|
|
aarti_pl
Joined: 25 Jul 2006 Posts: 28
|
Posted: Tue Jun 24, 2008 3:32 pm Post subject: |
|
|
I applied above configuration and do some perl magic on source files in trunk, although I am not sure if it helped.
If there are other outstanding issues please let me know. |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Tue Jun 24, 2008 3:36 pm Post subject: |
|
|
aarti_pl wrote: | I applied above configuration and do some perl magic on source files in trunk, although I am not sure if it helped.
If there are other outstanding issues please let me know. |
Did you check in the changes after running the perl magic? |
|
Back to top |
|
|
aarti_pl
Joined: 25 Jul 2006 Posts: 28
|
Posted: Tue Jun 24, 2008 3:41 pm Post subject: |
|
|
Yes but, perl script replaced also line ending in internal svn files. So comparing original and new file gave no differences But svn commit definitely worked.
After commit I removed whole trunk and update repository. Now I have LF endings everywhere, which seems quite good, although I would expect rather CRLF with setting eol:style = native.
I don't know if I should do anything else... |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Wed Jun 25, 2008 5:55 am Post subject: |
|
|
aarti_pl wrote: | Yes but, perl script replaced also line ending in internal svn files. So comparing original and new file gave no differences But svn commit definitely worked.
After commit I removed whole trunk and update repository. Now I have LF endings everywhere, which seems quite good, although I would expect rather CRLF with setting eol:style = native.
I don't know if I should do anything else... |
Seems to be working well to me. It does say they're "Unix" files, but Emacs is happy as long as the newlines are consistent. So I'm happy with the way it is now. |
|
Back to top |
|
|
|