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 http://doc.bazaar.canonical.com/bzr.dev/en/user-reference/eol-help.html, 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?
Niels

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
niels
Solved:
Last query:
Last reply:
Revision history for this message
niels (opensource21) said :
#1

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: http://wiki.bazaar.canonical.com/DraftSpecs/MetafileManagement 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=.
or
export BZR_HOME=.

but this is really inconvenient.