/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: Jelmer Vernooij
  • Date: 2006-05-19 17:03:51 UTC
  • mto: This revision was merged to the branch mainline in revision 80.
  • Revision ID: jelmer@samba.org-20060519170351-3960679221621fd4
Rename "Visualise Bazaar Branch" to "Log", which is a term 
more people will be familiar with. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
        return
66
66
 
67
 
    def log_cb(self, menu, vfs_file):
68
 
        # We can only cope with local files
69
 
        if vfs_file.get_uri_scheme() != 'file':
70
 
            return
71
 
 
72
 
        file = vfs_file.get_uri()
73
 
        try:
74
 
            tree, path = WorkingTree.open_containing(file)
75
 
        except NotBranchError:
76
 
            return
77
 
 
78
 
        return
79
 
 
80
67
    def diff_cb(self, menu, vfs_file):
81
68
        # We can only cope with local files
82
69
        if vfs_file.get_uri_scheme() != 'file':
134
121
        return
135
122
 
136
123
 
137
 
    def visualise_cb(self, menu, vfs_file):
 
124
    def log_cb(self, menu, vfs_file):
138
125
        # We can only cope with local files
139
126
        if vfs_file.get_uri_scheme() != 'file':
140
127
            return
164
151
            return item,
165
152
 
166
153
        if have_bzrk:
167
 
            item = nautilus.MenuItem('BzrNautilus::visualise',
168
 
                                 'Visualise Bazaar history',
169
 
                                 'Visualise Bazaar history')
170
 
            item.connect('activate', self.visualise_cb, vfs_file)
 
154
            item = nautilus.MenuItem('BzrNautilus::log',
 
155
                                 'Log',
 
156
                                 'Show Bazaar history')
 
157
            item.connect('activate', self.log_cb, vfs_file)
171
158
            return item,
172
159
 
173
160
        return