Merge lp:~ian-clatworthy/bzr/better-eol-doc into lp:~bzr/bzr/trunk-old

Proposed by Ian Clatworthy
Status: Merged
Approved by: Ian Clatworthy
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~ian-clatworthy/bzr/better-eol-doc
Merge into: lp:~bzr/bzr/trunk-old
Diff against target: 44 lines (has conflicts)
Text conflict in NEWS
To merge this branch: bzr merge lp:~ian-clatworthy/bzr/better-eol-doc
Reviewer Review Type Date Requested Status
John A Meinel Approve
Review via email: mp+7312@code.launchpad.net

This proposal supersedes a proposal from 2009-06-10.

To post a comment you must log in.
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Posted in a previous version of this proposal

This patch clarifies the dependencies and configuration of eol conversion. These changes were suggested/requested by Frits Jalvingh after he had trouble getting the feature running. See https://bugs.launchpad.net/bzr/+bug/362030/comments/2.

Revision history for this message
John A Meinel (jameinel) wrote : Posted in a previous version of this proposal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Clatworthy wrote:
> Ian Clatworthy has proposed merging lp:~ian-clatworthy/bzr/better-eol-doc into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
> This patch clarifies the dependencies and configuration of eol conversion. These changes were suggested/requested by Frits Jalvingh after he had trouble getting the feature running. See https://bugs.launchpad.net/bzr/+bug/362030/comments/2.
>
>

I'm pretty sure you need:

bzr info -v

As plain 'bzr info' doesn't tell you the exact formats.

...

BZR_HOME/bazaar.conf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkovwo8ACgkQJdeBCYSNAANlnACfUazYVeXaB7uJsm8mr1m59IVX
szUAoJvEGBZUm1ymcVf6WOOdCeYNw0TE
=hRwY
-----END PGP SIGNATURE-----

Revision history for this message
John A Meinel (jameinel) wrote : Posted in a previous version of this proposal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Clatworthy wrote:
> Ian Clatworthy has proposed merging lp:~ian-clatworthy/bzr/better-eol-doc into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
> This patch clarifies the dependencies and configuration of eol conversion. These changes were suggested/requested by Frits Jalvingh after he had trouble getting the feature running. See https://bugs.launchpad.net/bzr/+bug/362030/comments/2.
>
>

Sorry I hit send to early:

+Currently, rules are only supported in BZR_HOME/bazaar.conf. (Branch
+specific rules will be supported in a future verison of Bazaar.)

^- I'm pretty sure it is $BZR_HOME/rules not 'bazaar.conf'.

If I'm wrong, then you can land it.

  review needs_fixing

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkovwrcACgkQJdeBCYSNAAPY5QCfeGm8iP4vPn5KpxwVckKWQwpm
ifgAoILG8EJExtTmdDRHaopVMjGMIhgM
=iF+E
-----END PGP SIGNATURE-----

review: Needs Fixing
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Posted in a previous version of this proposal

John A Meinel wrote:
> Review: Needs Fixing
>
> Sorry I hit send to early:
>
> +Currently, rules are only supported in BZR_HOME/bazaar.conf. (Branch
> +specific rules will be supported in a future verison of Bazaar.)
>
> ^- I'm pretty sure it is $BZR_HOME/rules not 'bazaar.conf'.
>
Oops. Right you are. (BTW, we usually leave the $ off the front as it's
wrong on Windows.) I'll fix and resubmit.

Ian C.

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Clatworthy wrote:
> Ian Clatworthy has proposed merging lp:~ian-clatworthy/bzr/better-eol-doc into lp:bzr.
>
>
>

Just to mention that if you look in config.py it is actually

$BZR_HOME/.bazaar/rules

and

%BZR_HOME%/bazaar/2.0/rules

(%BZR_HOME% defaults to %APPDATA%, while $BZR_HOME "defaults" to
expanduser('~'))

I prefer $BZR_HOME because it is slightly more obvious that it is a
variable to be expanded, but not a big deal. Slightly more important is
that $BZR_HOME/rules is wrong... But there isn't a simple value that
works for all platforms anyway.

Anyway, good enough. Use your own judgement on $BZR_HOME/.bazaar/rules

  review approve

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkowh9YACgkQJdeBCYSNAANKPQCgy91OTA9x2RxoeFHL2nOxhmSn
658AoKDaAipla99Auij/58IjYxl9M0Y8
=858k
-----END PGP SIGNATURE-----

review: Approve
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

> Just to mention that if you look in config.py it is actually
>
> $BZR_HOME/.bazaar/rules
>
> and
>
> %BZR_HOME%/bazaar/2.0/rules
>
> (%BZR_HOME% defaults to %APPDATA%, while $BZR_HOME "defaults" to
> expanduser('~'))

Ah - good point. I've tweaked the text accordingly.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2009-06-15 15:20:24 +0000
+++ NEWS 2009-06-16 02:35:57 +0000
@@ -173,11 +173,17 @@
173Documentation173Documentation
174*************174*************
175175
176<<<<<<< TREE
176* Added directory structure and started translation of docs in Russian.177* Added directory structure and started translation of docs in Russian.
177 (Alexey Shtokalo, Alexander Iljin, Alexander Belchenko, Dmitry Vasiliev,178 (Alexey Shtokalo, Alexander Iljin, Alexander Belchenko, Dmitry Vasiliev,
178 Volodymyr Kotulskyi)179 Volodymyr Kotulskyi)
179180
180181
182=======
183* Minor clarifications to the help for End-Of-Line conversions.
184 (Ian Clatworthy)
185
186>>>>>>> MERGE-SOURCE
181API Changes187API Changes
182***********188***********
183189
184190
=== modified file 'bzrlib/help_topics/en/eol.txt'
--- bzrlib/help_topics/en/eol.txt 2009-05-12 02:01:15 +0000
+++ bzrlib/help_topics/en/eol.txt 2009-06-16 02:35:57 +0000
@@ -6,10 +6,16 @@
6``bzr help content-filters`` for general information about using these.6``bzr help content-filters`` for general information about using these.
77
8Note: Content filtering is only supported in recently added formats,8Note: Content filtering is only supported in recently added formats,
9e.g. 1.14.9e.g. 1.14. Be sure that both the repository *and* the branch are
10in a recent format. (Just setting the format on the repository
11is not enough.) If content filtering does not appear to be working, use
12'bzr info -v' to confirm that the branch is using "Working tree format 5"
13or later.
1014
11EOL conversion needs to be enabled for selected branches and files using15EOL conversion needs to be enabled for selected file patterns using
12rules. See ``bzr help rules`` for general information on defining rules.16rules. See ``bzr help rules`` for general information on defining rules.
17Currently, rules are only supported in BZR_HOME/rules. (Branch
18specific rules will be supported in a future verison of Bazaar.)
1319
14To configure which files to filter, set ``eol`` to one of the values below.20To configure which files to filter, set ``eol`` to one of the values below.
15(If a value is not set, ``exact`` is the default.)21(If a value is not set, ``exact`` is the default.)