~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-06 10:25:20 UTC
  • mfrom: (1711.2.33 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060606102520-64c05752f159a669
[patch] Matthieu Moy, make 'bzr log --line' only use the first line as a summary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        reversed_result.reverse()
102
102
        return reversed_result
103
103
 
 
104
    def get_summary(self):
 
105
        """Get the first line of the log message for this revision.
 
106
        """
 
107
        return self.message.split('\n', 1)[0]
 
108
 
104
109
 
105
110
def is_ancestor(revision_id, candidate_id, branch):
106
111
    """Return true if candidate_id is an ancestor of revision_id.