/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: John Arbash Meinel
  • Date: 2007-09-28 22:25:49 UTC
  • mto: (322.1.1 trunk) (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20070928222549-iq71v20ax7h3x8ff
Starting to flesh out the dialog with actual windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
    """GTK+ commit dialog
336
336
 
337
337
    Graphical user interface for committing revisions"""
338
 
    
 
338
 
339
339
    aliases = [ "gci" ]
340
340
    takes_args = []
341
341
    takes_options = []
354
354
            (wt, path) = workingtree.WorkingTree.open_containing(filename)
355
355
            br = wt.branch
356
356
        except NoWorkingTree, e:
357
 
            path = e.base
358
 
            (br, path) = branch.Branch.open_containing(path)
359
 
 
360
 
        commit = CommitDialog(wt, path, not br)
361
 
        commit.run()
362
 
 
 
357
            from dialog import error_dialog
 
358
            error_dialog(_('Directory does not have a working tree'),
 
359
                         _('Operation aborted.'))
 
360
            return 1 # should this be retval=3?
 
361
 
 
362
        # It is a good habit to keep things locked for the duration, but it
 
363
        # could cause difficulties if someone wants to do things in another
 
364
        # window... We could lock_read() until we actually go to commit
 
365
        # changes... Just a thought.
 
366
        wt.lock_write()
 
367
        try:
 
368
            dlg = CommitDialog(wt)
 
369
            return dlg.run()
 
370
        finally:
 
371
            wt.unlock()
363
372
 
364
373
 
365
374
class cmd_gstatus(GTKCommand):