'bzr config' fails to display config templates referring to "unknown" options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Vincent Ladeuil |
Bug Description
To set a custom mergetool `bzr help configuration` lists {base}, {this} etc to pass options to the tool.
Setting this works fine in 2.5, but retrieving it trips on option expansion. Bzr 2.4 works fine in this regard.
>> bzr config bzr.mergetool.
>> ~/src/bzr/2.4/bzr config bzr.mergetool.
mycoolmergetool --wait {this} {other} {result} {base}
>> ~/src/bzr/2.5/bzr config bzr.mergetool.
bzr: ERROR: bzrlib.
Traceback (most recent call last):
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
return self._operation
File "/home/
File "/home/
result = func(*args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
File "/home/
value = conf.get(name, expand=True)
File "/home/
value = expand_
File "/home/
val = self._expand_
File "/home/
raise errors.
ExpandingUn
Related branches
- John A Meinel: Approve
-
Diff: 94 lines (+44/-7)3 files modifiedbzrlib/config.py (+11/-7)
doc/en/release-notes/bzr-2.6.txt (+3/-0)
doc/en/user-guide/configuring_bazaar.txt (+30/-0)
summary: |
- mergetool config clashes with config option expansion + 'bzr config' fails to display config templates referring to "unknown" + options |
Changed in bzr: | |
assignee: | nobody → Vincent Ladeuil (vila) |
milestone: | none → 2.6b3 |
status: | Confirmed → Fix Released |
Changed in bzr: | |
milestone: | 2.6b3 → 2.6.0 |
'bzr config' does not expand the values displayed.
'bzr config <option>' tries to expand the value to present what bzr will use.
Since templates (rightly) use options that come from outside the config files, this fails.
I'm not quite sure what to do about that... suggestions ?
On one hand, the behaviour is sound, 'this' can't be expanded so the error is "correct".
On the other hand, one could imagine an additional command-line switch to explicitly control the expansion.