~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_annotate.py

  • Committer: James Westby
  • Date: 2009-02-26 19:21:53 UTC
  • mto: This revision was merged to the branch mainline in revision 4077.
  • Revision ID: jw+debian@jameswestby.net-20090226192153-wcqvwsjb5cn37lb9
Allow specifying multiple authors for a revision.

The revision property "author" is now a "\n"-separated list of authors.

--author can be specified multiple times to populate that list at commit
time.

get_apparent_author() is deprecated in favour of get_apparent_authors(),
which will return a list.

Some things (e.g. annotate) still just use the first item from that list,
but there is now support for other code to use all of the authors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        tree1.add(['b'], ['b-id'])
476
476
        tree1.commit('b', rev_id='rev-2',
477
477
                     committer='Committer <committer@example.com>',
478
 
                     author='Author <author@example.com>',
 
478
                     authors=['Author <author@example.com>'],
479
479
                     timestamp=1166046000.00, timezone=0)
480
480
 
481
481
        tree1.lock_read()