How to enable end of of line conversion per branch

Asked by niels

I have a problem:
I have a bzr branch which was used for many years only under windows. So no line conversion rules are set. I guess in the rep, all files are CRLF. Now I want to start a new project and want to do it right, meaning set up eol conversion, so that in the rep only LF and not CRLF is stored. I read, but if I changed it globally all files are try to converted, so I fear that I will have a mess at the end for my old project.

So how can I make setting per branch? Or better how can I convert the old branch?

Question information

English Edit question
Bazaar Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
niels (opensource21) said :

After reading the documentation very carefully, I saw "Currently, rules are only supported in $BZR_HOME/.bazaar/rules (or %BZR_HOME%/bazaar/2.0/rules on Windows)". So the conversion can't be done per branch. I found a draft-spec: which address this issue. How ever I can't find any bug which address this issue, to track the issue.

To convert a repository: Define the rules and touch every file. Then commit.

Another workaround is, to set the BZR_HOME, for example
set BZR_HOME=.
export BZR_HOME=.

but this is really inconvenient.