~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4081.3.2.

  • Committer: Martin von Gagern
  • Date: 2010-03-24 17:55:20 UTC
  • mto: This revision was merged to the branch mainline in revision 5211.
  • Revision ID: martin.vgagern@gmx.net-20100324175520-3c7hkpdc53nip9f7
Provide --authors argument to log command.

In some situations it might be useful what authorship to display in a log. 
This change introduces a new --authors switch, with possible values 'all',
'first' and 'committer'.  Using this switch, user can override the choice
made by the log format.

On the implementation side in log.py, there is a new method
LogFormatter.authors which does all the author selection stuff.  Other
methods, in derived classes in particular, delegate to that method to do the
formatting.  This ensures that the override from the comand line applies to
all formats.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: