End of line characters in bzr
Alexander Belchenko
bialix at ukr.net
Thu Nov 2 13:17:57 GMT 2006
Nicholas Allen пишет:
> Just wondering how bzr deals with EOL characters. In the repository they
> are stored only as \n but in working tree they use the native OS line
> ending style don't they?
No. Bzr store lines as-is and use \n as line endings character.
See: http://bazaar-vcs.org/LineEndings
Actually problem is in fact that bzr don't store type of file: text or
binary and each time try to guess this.
> I just wanted to try branching in bzr on our repository and copying the
> files from a subversion working copy of an svn branch into the bzr
> working tree and committing. But when I do so it says that every line
> changed and if I diff it then the only difference is the line end
> character (and of course the other changes I made in my svn branch
> working copy). If bzr uses the OS EOL character (and I'm sure that svn
> does too) then there should not be any difference in the EOL.
>
> Is there any way to get bzr to ignore end of line character changes and
> not commit them? If they are always stored in the repository as \n then
> shouldn't this just be the default option for commit, diff, and status?
More information about the bazaar
mailing list