~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to graph.py

Merge from abentley.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#    You should have received a copy of the GNU General Public License
15
15
#    along with this program; if not, write to the Free Software
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
from bzrtools import short_committer
17
18
from dotgraph import Node, dot_output, invoke_dot, invoke_dot_aa, NoDot, NoRsvg
18
19
from dotgraph import RSVG_OUTPUT_TYPES, DOT_OUTPUT_TYPES, Edge, invoke_dot_html
19
20
from bzrlib.branch import Branch
36
37
            }
37
38
 
38
39
committer_alias = {'abentley': 'Aaron Bentley'}
39
 
def short_committer(committer):
40
 
    new_committer = re.sub('<.*>', '', committer).strip(' ')
41
 
    if len(new_committer) < 2:
42
 
        return committer
43
 
    return new_committer
44
 
 
45
40
def can_skip(rev_id, descendants, ancestors):
46
41
    if rev_id not in descendants:
47
42
        return False