/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: 2007-02-01 15:50:40 UTC
  • Revision ID: jelmer@samba.org-20070201155040-3hq4mfbxs99kzazy
add framework for tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Trivial Bazaar plugin for Nautilus
2
 
#
3
 
# Copyright (C) 2006 Jeff Bailey
4
 
# Copyright (C) 2006 Wouter van Heyst
5
 
# Copyright (C) 2006 Jelmer Vernooij
6
 
#
7
 
# Published under the GNU GPL
8
 
 
9
1
import nautilus
10
2
import bzrlib
11
3
from bzrlib.bzrdir import BzrDir
78
70
        except NotBranchError:
79
71
            return
80
72
 
81
 
        from bzrlib.plugins.gtk.viz.diff import DiffWindow
 
73
        from bzrlib.plugins.gtk.viz.diffwin import DiffWindow
82
74
        window = DiffWindow()
83
75
        window.set_diff(tree.branch.nick, tree, tree.branch.basis_tree())
84
76
        window.show()
126
118
        if vfs_file.get_uri_scheme() != 'file':
127
119
            return
128
120
 
129
 
        from bzrlib.plugins.gtk.branch import BranchDialog
 
121
        from bzrlib.plugins.gtk.olive.branch import BranchDialog
130
122
        
131
123
        dialog = BranchDialog(vfs_file.get_name())
132
124
        dialog.display()
142
134
        except NotBranchError:
143
135
            return
144
136
 
145
 
        from bzrlib.plugins.gtk.commit import CommitDialog
 
137
        from bzrlib.plugins.gtk.olive.commit import CommitDialog
146
138
        dialog = CommitDialog(tree, path)
147
139
        dialog.display()
148
140
        gtk.main()
178
170
        except NotBranchError:
179
171
            return
180
172
 
181
 
        from bzrlib.plugins.gtk.pull import PullDialog
 
173
        from bzrlib.plugins.gtk.olive.pull import PullDialog
182
174
        dialog = PullDialog(tree, path)
183
175
        dialog.display()
184
176
        gtk.main()
196
188
        except NotBranchError:
197
189
            return
198
190
 
199
 
        from bzrlib.plugins.gtk.merge import MergeDialog
 
191
        from bzrlib.plugins.gtk.olive.merge import MergeDialog
200
192
        dialog = MergeDialog(tree, path)
201
193
        dialog.display()
202
194
        gtk.main()