missing or misnamed (!=bzr_identity) branch config in tarmac.conf yields confusing behavior
Bug #1304059 reported by
David Britton
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Tarmac |
Fix Released
|
High
|
dobey |
Bug Description
If you run tarmac like this:
tarmac -v -d lp:~user/project/branch
But tarmac thinks the branch is "lp:project" (the bzr_identity), you get confusing results. Branches get landed without any settings applied to them. Like the 'verify_command', bugresolver, commit message plugins, all don't load and happily appear to succeed (without doing anything).
It's even worse if the 'BRANCH_URL' is unspecified on the command line and multiple branches are used in the config, since then you can get the case where you think your config is correct (tarmac is attempting to land that branch), but it can't read any of the config settings.
Related branches
lp:~dobey/tarmac/not-bzr-ident
- Leo Arias: Approve
-
Diff: 53 lines (+19/-3)2 files modifiedtarmac/branch.py (+6/-2)
tarmac/tests/test_branch.py (+13/-1)
description: | updated |
Changed in tarmac: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in tarmac: | |
assignee: | nobody → Rodney Dawes (dobey) |
status: | Triaged → In Progress |
Changed in tarmac: | |
status: | In Progress → Fix Committed |
Changed in tarmac: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
this is indeed actually confusing,
if a branch is configured as
[lp:~tanuki/uservice-logging/trunk]
...
instead of (using bzr_identiy)
[lp:uservice-logging]
...
tarmac will happily merge branches but use an empty config so no verify_command is run and no tweaked commit message etc
I think it should either fail to merge (reporting it like any other pre merge failure) or use the config