Comment 3 for bug 321320

Revision history for this message
Martin Packman (gz) wrote :

Probably also this bug, in some slightly mysterious circumstances that depends on my particular test setup and on what other tests are also run, I get this failure:

File ".\bzrlib\branchbuilder.py", line 42, in bzrlib.branchbuilder.BranchBuilder
Failed example:
    builder.build_snapshot('rev-id', None, [
        ('add', ('', 'root-id', 'directory', '')),
        ('add', ('filename', 'f-id', 'file', 'content\n'))])
Exception raised:
    Traceback (most recent call last):
      File "...\python-trunk\lib\doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest bzrlib.branchbuilder.BranchBuilder[3]>", line 3, in <module>
        ('add', ('filename', 'f-id', 'file', 'content\n'))])
      File ".\bzrlib\branchbuilder.py", line 250, in build_snapshot
        message_callback=message_callback)
      File ".\bzrlib\branchbuilder.py", line 112, in _do_commit
        **kwargs)
      File "<string>", line 4, in commit_write_locked
      File ".\bzrlib\mutabletree.py", line 200, in commit
        *args, **kwargs)
      File ".\bzrlib\commit.py", line 286, in commit
        possible_master_transports=possible_master_transports)
      File ".\bzrlib\cleanup.py", line 131, in run
        self.cleanups, self.func, self, *args, **kwargs)
      File ".\bzrlib\cleanup.py", line 165, in _do_with_cleanups
        result = func(*args, **kwargs)
      File ".\bzrlib\commit.py", line 402, in _commit
        self.config, timestamp, timezone, committer, self.revprops, rev_id)
      File ".\bzrlib\branch.py", line 704, in get_commit_builder
        timestamp, timezone, committer, revprops, revision_id)
      File ".\bzrlib\repository.py", line 1765, in get_commit_builder
        timestamp, timezone, committer, revprops, revision_id)
      File ".\bzrlib\repofmt\pack_repo.py", line 117, in __init__
        revprops=revprops, revision_id=revision_id)
      File ".\bzrlib\repository.py", line 114, in __init__
        self._committer = self._config.username()
      File ".\bzrlib\config.py", line 279, in username
        raise errors.NoWhoami()
    NoWhoami: Unable to determine your name.
    Please, set your name with the 'whoami' command.
    E.g. bzr whoami "Your Name <email address hidden>"