/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to nautilus-bzr.py

  • Committer: Vincent Ladeuil
  • Date: 2009-08-25 13:48:26 UTC
  • mfrom: (658.1.1 emblem-fix)
  • Revision ID: v.ladeuil+lp@free.fr-20090825134826-i28th4u0llf16d4d
(vila) Add emblem for ignored and unversioned files

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
        emblem = None
402
402
        status = None
403
403
 
404
 
        if tree.has_filename(path):
 
404
        id = tree.path2id(path)
 
405
        if id == None:
 
406
            if tree.is_ignored(path):
 
407
                status = 'ignored'
 
408
                emblem = 'bzr-ignored'
 
409
            else:
 
410
                status = 'unversioned'
 
411
                        
 
412
        elif tree.has_filename(path):
405
413
            emblem = 'bzr-controlled'
406
414
            status = 'unchanged'
407
 
            id = tree.path2id(path)
408
415
 
409
416
            delta = tree.changes_from(tree.branch.basis_tree())
410
417
            if delta.touches_file_id(id):