~jamesh/bzr-gtk/bug-206443

« back to all changes in this revision

Viewing changes to nautilus-bzr.py

  • Committer: Jelmer Vernooij
  • Date: 2008-03-10 01:36:54 UTC
  • mfrom: (423.13.5 nautilus-fix)
  • Revision ID: jelmer@samba.org-20080310013654-o4o6r8vntk65d7o9
Use right icons for bzr emblems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
370
370
        status = None
371
371
 
372
372
        if tree.has_filename(path):
373
 
            emblem = 'cvs-controlled'
 
373
            emblem = 'bzr-controlled'
374
374
            status = 'unchanged'
375
375
            id = tree.path2id(path)
376
376
 
377
377
            delta = tree.changes_from(tree.branch.basis_tree())
378
378
            if delta.touches_file_id(id):
379
 
                emblem = 'cvs-modified'
 
379
                emblem = 'bzr-modified'
380
380
                status = 'modified'
381
381
            for f, _, _ in delta.added:
382
382
                if f == path:
383
 
                    emblem = 'cvs-added'
 
383
                    emblem = 'bzr-added'
384
384
                    status = 'added'
385
385
 
386
386
            for of, f, _, _, _, _ in delta.renamed:
388
388
                    status = 'renamed from %s' % f
389
389
 
390
390
        elif tree.branch.basis_tree().has_filename(path):
391
 
            emblem = 'cvs-removed'
 
391
            emblem = 'bzr-removed'
392
392
            status = 'removed'
393
393
        else:
394
394
            # FIXME: Check for ignored files
395
395
            status = 'unversioned'
 
396
            emblem = 'bzr-unversioned'
396
397
        
397
398
        if emblem is not None:
398
399
            file.add_emblem(emblem)