FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newlines

 
Post new topic   Reply to topic     Forum Index -> Doost
View previous topic :: View next topic  
Author Message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Mon Jun 23, 2008 12:09 am    Post subject: Newlines Reply with quote

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
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Tue Jun 24, 2008 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
aarti_pl



Joined: 25 Jul 2006
Posts: 28

PostPosted: Tue Jun 24, 2008 3:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Tue Jun 24, 2008 3:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
aarti_pl



Joined: 25 Jul 2006
Posts: 28

PostPosted: Tue Jun 24, 2008 3:41 pm    Post subject: Reply with quote

Yes but, perl script replaced also line ending in internal svn files. So comparing original and new file gave no differences Smile 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
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Wed Jun 25, 2008 5:55 am    Post subject: Reply with quote

aarti_pl wrote:
Yes but, perl script replaced also line ending in internal svn files. So comparing original and new file gave no differences Smile 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Doost All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group