~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to branchhistory.py

  • Committer: Benoît Pierre
  • Date: 2008-11-16 17:50:52 UTC
  • mto: This revision was merged to the branch mainline in revision 683.
  • Revision ID: benoit.pierre@gmail.com-20081116175052-8ldrpprvpfq3wscm
Check if STDOUT is a TTY in has_ansi_colors: return False if not.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    b.repository.lock_read()
11
11
    try:
12
12
        for revno, revision in iter_revisiondata(b):
13
 
            new_descriptor = (revision.committer, 
 
13
            new_descriptor = (revision.committer,
14
14
                              revision.properties.get('branch-nick'))
15
15
            if descriptor is None:
16
16
                descriptor = new_descriptor