~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to graph.py

  • Committer: Aaron Bentley
  • Date: 2005-09-20 18:56:37 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050920185637-082bf1777e53167b
Fixed empty committer for null revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        committer = short_committer(source.get_revision(rev_id).committer)
129
129
    except NoSuchRevision:
130
130
        try:
131
 
            committer = '-'.join(rev_id.split('-')[:-2])\
132
 
                .strip(' ')
 
131
            committer = '-'.join(rev_id.split('-')[:-2]).strip(' ')
 
132
            if committer == '':
 
133
                return None
133
134
        except ValueError:
134
 
            committer = '' 
 
135
            return None
135
136
    if '@' in committer:
136
137
        try:
137
138
            committer = mail_map[committer]