news_merge example configuration won't work

Bug #553161 reported by Martin von Gagern
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Andrew Bennetts

Bug Description

I've configured the news_merge plugin as "bzr help news_merge" suggests:

[/path/to/bzr/*]
news_merge_files = NEWS
news_merge_files:policy = recurse

The result is a lengthy backtrace when I do merge branches under that repository. The last lines:

  File "/usr/lib64/python2.6/site-packages/bzrlib/config.py", line 602, in _get_option_policy
    return _policy_value[policy_name]
KeyError: u'recurse'

bzr 2.1.1 on python 2.6.5 (Linux-2.6.33-gentoo-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.0.1)

I have no clue what this recurse policy should do, but it doesn't seem to work for me. Dropping it helps.

Related branches

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 553161] [NEW] news_merge example configuration won't work

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

Martin von Gagern wrote:
> Public bug reported:
>
> I've configured the news_merge plugin as "bzr help news_merge" suggests:
>
> [/path/to/bzr/*]
> news_merge_files = NEWS
> news_merge_files:policy = recurse
>
> The result is a lengthy backtrace when I do merge branches under that
> repository. The last lines:
>
> File "/usr/lib64/python2.6/site-packages/bzrlib/config.py", line 602, in _get_option_policy
> return _policy_value[policy_name]
> KeyError: u'recurse'
>
> bzr 2.1.1 on python 2.6.5 (Linux-2.6.33-gentoo-x86_64-AMD_Phenom-tm-
> _II_X4_945_Processor-with-gentoo-2.0.1)
>
> I have no clue what this recurse policy should do, but it doesn't seem
> to work for me. Dropping it helps.
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

Just remove the "= recurse" line. The default policy is 'recurse' and we
don't actually allow you to set it. (there is 'norecurse' and 'appendpath'.)

Essentially this is just a doc bug in how to configure the plugin.

John
=:->

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

iEYEARECAAYFAku1NugACgkQJdeBCYSNAAOMVwCdFi/MA4dGjJEJj8vcRwSemguv
LG8An0wGPlEd//CiP3viBDelqdWkK4b9
=3yar
-----END PGP SIGNATURE-----

Andrew Bennetts (spiv)
Changed in bzr:
assignee: nobody → Andrew Bennetts (spiv)
importance: Undecided → High
status: New → Confirmed
Andrew Bennetts (spiv)
Changed in bzr:
status: Confirmed → In Progress
Andrew Bennetts (spiv)
Changed in bzr:
milestone: none → 2.1.2
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.