/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: 2008-07-30 23:52:06 UTC
  • mto: (580.2.1 gtk.gloom)
  • mto: This revision was merged to the branch mainline in revision 581.
  • Revision ID: jelmer@samba.org-20080730235206-4stv1rmgw5ey0ttw
Add gloom command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
gconflicts        GTK+ conflicts. 
23
23
gdiff             Show differences in working tree in a GTK+ Window. 
24
24
ginit             Initialise a new branch.
 
25
gloom             GTK+ loom browse dialog
25
26
gmerge            GTK+ merge dialog
26
27
gmissing          GTK+ missing revisions dialog. 
27
28
gpreferences      GTK+ preferences dialog. 
172
173
    def run(self, location="."):
173
174
        (br, path) = branch.Branch.open_containing(location)
174
175
        open_display()
175
 
        from push import PushDialog
 
176
        from bzrlib.plugins.gtk.push import PushDialog
176
177
        dialog = PushDialog(br.repository, br.last_revision(), br)
177
178
        dialog.run()
178
179
 
179
180
 
 
181
class cmd_gloom(GTKCommand):
 
182
    """ GTK+ loom.
 
183
    
 
184
    """
 
185
    takes_args = [ "location?" ]
 
186
 
 
187
    def run(self, location="."):
 
188
        (br, path) = branch.Branch.open_containing(location)
 
189
        open_display()
 
190
        from bzrlib.plugins.gtk.loom import LoomDialog
 
191
        dialog = LoomDialog(br)
 
192
        dialog.run()
 
193
 
180
194
 
181
195
class cmd_gdiff(GTKCommand):
182
196
    """Show differences in working tree in a GTK+ Window.
548
562
    cmd_visualise
549
563
    ]
550
564
 
 
565
if getattr(bzrlib.plugins, "loom", None) is not None:
 
566
    commands.append(cmd_gloom)
 
567
 
551
568
for cmd in commands:
552
569
    register_command(cmd)
553
570