commit uses system user-id to generate revision-id even when committer id is supplied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Unassigned | ||
Launchpad itself |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The supplied traceback was generated with "committer" set, but system username unset.
While the text of revision-ids is arguably unimportant, the requirement that a system username be set even if it's not being used as the commit-id is a burden for bzrlib clients.
File "/home/
return fn(*args)
File "/home/
testMethod()
File "/home/
revision_id = self.committer.
File "/home/
self.bzrbranch, commit_message, committer=
File "/home/
revision_
File "/home/
timestamp, timezone, committer, revprops, revision_id)
File "/home/
timestamp, timezone, committer, revprops, revision_id)
File "/home/
revprops=
File "/home/
self.
File "/home/
self.
File "/home/
return generate_
File "/home/
raise errors.NoWhoami()
NoWhoami: Unable to determine your name.
Related branches
- Jelmer Vernooij (community): Approve
-
Diff: 103 lines (+57/-6)4 files modifiedNEWS (+28/-0)
bzrlib/generate_ids.py (+4/-4)
bzrlib/repository.py (+1/-2)
bzrlib/tests/per_repository/test_commit_builder.py (+24/-0)
Changed in launchpad-code: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in bzr: | |
milestone: | none → 2.2.1 |
status: | Confirmed → Fix Released |
Changed in launchpad: | |
status: | Triaged → Fix Released |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley wrote:
> Public bug reported:
>
> The supplied traceback was generated with "committer" set, but system
> username unset.
>
> While the text of revision-ids is arguably unimportant, the requirement
> that a system username be set even if it's not being used as the commit-
> id is a burden for bzrlib clients.
It isn't a strict requirement for the revision-ids. We *did* decide to
make it a strict requirement for commit to put a correct username into
the Revision record.
I'm pretty sure this is WontFix, as it was an explicit decision in the
last release.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkx cLRUACgkQJdeBCY SNAAOZUgCfTlDch kGRxIkzp1vUrTz0 1Ayz yEheE0cFqsaZjDd GZY9+tsck8
2r4Ani+
=Q80y
-----END PGP SIGNATURE-----