/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 olive/info.py

  • Committer: Jelmer Vernooij
  • Date: 2006-10-01 01:56:17 UTC
  • mfrom: (0.8.98 merge)
  • Revision ID: jelmer@samba.org-20061001015617-9827cc403415cbf0
[merge] more changes from Szilveszter

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
import sys
18
 
 
19
17
try:
20
18
    import pygtk
21
19
    pygtk.require("2.0")
24
22
 
25
23
import gtk
26
24
import gtk.glade
27
 
import gobject
28
 
import pango
29
25
 
30
26
import bzrlib.errors as errors
31
27
 
32
28
from olive import gladefile
 
29
from dialog import error_dialog
33
30
 
34
31
def info(location):
35
32
    """ Get info about branch, working tree, and repository
81
78
    try:
82
79
        a_bzrdir = bzrdir.BzrDir.open_containing(location)[0]
83
80
    except errors.NotBranchError:
84
 
        raise NotBranchError(location)
 
81
        raise errors.NotBranchError(location)
85
82
 
86
83
    try:
87
84
        working = a_bzrdir.open_workingtree()
554
551
        """ Display the Informations window. """
555
552
        if self.notbranch:
556
553
            error_dialog(_('Directory is not a branch'),
557
 
                                     _('You can perform this action only in a branch.'))
 
554
                         _('You can perform this action only in a branch.'))
558
555
            self.close()
559
556
        else:
560
557
            self.window.show()