/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 __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2007-03-27 23:45:49 UTC
  • mfrom: (182.1.1 trunk)
  • Revision ID: jelmer@samba.org-20070327234549-j5v5fafxonhlr7b1
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
462
462
        broadcast_service = bus.get_object(
463
463
            activity.Broadcast.DBUS_NAME,
464
464
            activity.Broadcast.DBUS_PATH)
465
 
        def catch_branch(revision_id, url):
 
465
        def catch_branch(revision_id, urls):
 
466
            # TODO: show all the urls, or perhaps choose the 'best'.
 
467
            url = urls[0]
466
468
            try:
467
469
                if isinstance(revision_id, unicode):
468
470
                    revision_id = revision_id.encode('utf8')
469
471
                transport = get_transport(url)
470
 
                try:
471
 
                    transport.local_abspath('.')
472
 
                except errors.TransportNotPossible:
473
 
                    # dont show remote urls for now.
474
 
                    return
475
 
                # here we should:
476
472
                a_dir = BzrDir.open_from_transport(transport)
477
473
                branch = a_dir.open_branch()
478
474
                revno = branch.revision_id_to_revno(revision_id)
484
480
                body += '\n'
485
481
                body += revision.message
486
482
                body = cgi.escape(body)
487
 
                #print repr(body)
488
483
                nw = pynotify.Notification(summary, body)
489
484
                nw.set_timeout(5000)
490
485
                nw.show()