/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: 2007-10-26 16:25:04 UTC
  • Revision ID: jelmer@samba.org-20071026162504-fywdnhnhitl5tlir
Add gsend command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
gannotate         GTK+ annotate. 
20
20
gbranch           GTK+ branching. 
21
21
gcheckout         GTK+ checkout. 
22
 
gcommit           GTK+ commit dialog 
 
22
gcommit           GTK+ commit dialog.
23
23
gconflicts        GTK+ conflicts. 
24
24
gdiff             Show differences in working tree in a GTK+ Window. 
25
25
ginit             Initialise a new branch.
26
26
gmissing          GTK+ missing revisions dialog. 
27
27
gpreferences      GTK+ preferences dialog. 
28
 
gpush             GTK+ push. 
29
 
gstatus           GTK+ status dialog 
 
28
gpush             GTK+ push.
 
29
gsend             GTK+ send merge directive.
 
30
gstatus           GTK+ status dialog.
30
31
gtags             Manage branch tags.
31
32
visualise         Graphically visualise this branch. 
32
33
"""
382
383
        status.run()
383
384
 
384
385
 
 
386
class cmd_gsend(GTKCommand):
 
387
    """GTK+ send merge directive.
 
388
 
 
389
    """
 
390
    def run(self):
 
391
        (br, path) = branch.Branch.open_containing(".")
 
392
        from bzrlib.plugins.gtk.mergedirective import SendMergeDirectiveDialog
 
393
        dialog = SendMergeDirectiveDialog(br)
 
394
        dialog.run()
 
395
 
385
396
 
386
397
class cmd_gconflicts(GTKCommand):
387
 
    """ GTK+ conflicts.
 
398
    """GTK+ conflicts.
388
399
    
389
400
    Select files from the list of conflicts and run an external utility to
390
401
    resolve them.
397
408
        dialog.run()
398
409
 
399
410
 
400
 
 
401
411
class cmd_gpreferences(GTKCommand):
402
412
    """ GTK+ preferences dialog.
403
413
 
409
419
        dialog.run()
410
420
 
411
421
 
412
 
 
413
422
class cmd_gmissing(Command):
414
423
    """ GTK+ missing revisions dialog.
415
424
 
466
475
 
467
476
 
468
477
commands = [
 
478
    cmd_gannotate, 
 
479
    cmd_gbranch,
 
480
    cmd_gcheckout, 
 
481
    cmd_gcommit, 
 
482
    cmd_gconflicts, 
 
483
    cmd_gdiff,
 
484
    cmd_ginit,
469
485
    cmd_gmissing, 
470
486
    cmd_gpreferences, 
471
 
    cmd_gconflicts, 
 
487
    cmd_gpush, 
 
488
    cmd_gsend,
472
489
    cmd_gstatus,
473
 
    cmd_gcommit, 
474
 
    cmd_gannotate, 
475
 
    cmd_visualise, 
476
 
    cmd_gdiff,
477
 
    cmd_gpush, 
478
 
    cmd_gcheckout, 
479
 
    cmd_gbranch,
480
 
    cmd_ginit,
481
 
    cmd_gtags
 
490
    cmd_gtags,
 
491
    cmd_visualise
482
492
    ]
483
493
 
484
494
for cmd in commands: