bzr blame gives error if user has not done 'bzr whoami'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Jonathan Riddell | ||
bzr (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bzr
Package: bzr
Version: 2.2.0-1
Ubuntu version: 10.10
If you try to use 'bzr blame' and you haven't used 'bzr whoami' to tell bzr who you are then it complains. Actual behaviour:
petmay01@
bzr: ERROR: Unable to determine your name.
Please, set your name with the 'whoami' command.
E.g. bzr whoami "Your Name <email address hidden>"
The expected behaviour is that it should give you the annotated file the same way it does once you have done 'bzr whoami', rather than a fatal error.
There shouldn't be any reason for bzr to need to know who the local user is in order to do 'blame' annotation, any more than it does for 'bzr log'. I'm guessing that the reason this happens is that bzr wants to know how to annotate local uncommitted changes, but it would be more user friendly to just annotate these as "[local user]" or something similar rather than just refuse to do anything.
Related branches
- Jelmer Vernooij (community): Approve (code)
-
Diff: 130 lines (+30/-9)5 files modifiedbzrlib/annotate.py (+5/-1)
bzrlib/tests/blackbox/test_ancestry.py (+0/-3)
bzrlib/tests/blackbox/test_annotate.py (+22/-4)
bzrlib/tests/per_repository/test_commit_builder.py (+0/-1)
doc/en/release-notes/bzr-2.4.txt (+3/-0)
tags: | added: annotate whoami |
tags: | added: affects-linaro |
Changed in bzr: | |
assignee: | nobody → Jonathan Riddell (jr) |
milestone: | none → 2.4b4 |
status: | Confirmed → Fix Released |
Changed in bzr (Ubuntu): | |
status: | Confirmed → In Progress |
Thanks for the report. There are other similar bugs in other commands.
Perhaps we should check for a 'reliable' user id only in commit?