/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: Szilveszter Farkas (Phanatic)
  • Date: 2007-06-10 15:50:23 UTC
  • mfrom: (195.1.26 browse-remote-branches)
  • Revision ID: szilveszter.farkas@gmail.com-20070610155023-o3moy5a3wrp9o412
Merge browse-remote-branches branch (experimental).

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
 
109
109
    try:
110
110
        branch = a_bzrdir.open_branch()
 
111
        repository = branch.repository
 
112
        control = a_bzrdir
111
113
        branch.lock_read()
112
114
        try:
113
115
            ret['location'] = info_helper.get_location_info(repository, branch)
142
144
 
143
145
class OliveInfo:
144
146
    """ Display Informations window and perform the needed actions. """
145
 
    def __init__(self, wt):
 
147
    def __init__(self, branch):
146
148
        """ Initialize the Informations window. """
147
149
        self.glade = gtk.glade.XML(GLADEFILENAME, 'window_info', 'olive-gtk')
148
150
        
152
154
        # Check if current location is a branch
153
155
        self.notbranch = False
154
156
        try:
155
 
            self.ret = info(wt.basedir)
 
157
            self.ret = info(branch.base)
156
158
        except errors.NotBranchError:
157
159
            self.notbranch = True
158
160
            return