~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: John Arbash Meinel
  • Date: 2010-02-17 17:11:16 UTC
  • mfrom: (4797.2.17 2.1)
  • mto: (4797.2.18 2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: john@arbash-meinel.com-20100217171116-h7t9223ystbnx5h8
merge bzr.2.1 in preparation for NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    symbol_versioning,
29
29
    )
30
30
from bzrlib.osutils import contains_whitespace
 
31
from bzrlib.progress import DummyProgress
31
32
 
32
33
NULL_REVISION="null:"
33
34
CURRENT_REVISION="current:"
121
122
        else:
122
123
            return ''
123
124
 
 
125
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((1, 13, 0)))
 
126
    def get_apparent_author(self):
 
127
        """Return the apparent author of this revision.
 
128
 
 
129
        This method is deprecated in favour of get_apparent_authors.
 
130
 
 
131
        If the revision properties contain any author names,
 
132
        return the first. Otherwise return the committer name.
 
133
        """
 
134
        authors = self.get_apparent_authors()
 
135
        if authors:
 
136
            return authors[0]
 
137
        else:
 
138
            return None
 
139
 
124
140
    def get_apparent_authors(self):
125
141
        """Return the apparent authors of this revision.
126
142