/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 olive/mkdir.py

  • Committer: Daniel Schierbeck
  • Date: 2008-01-23 16:36:21 UTC
  • mto: (423.1.8 trunk)
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: daniel.schierbeck@gmail.com-20080123163621-x8kublc38ojipnly
Made the revision popup menu correctly add tags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
import bzrlib.errors as errors
29
29
 
30
 
from dialog import error_dialog, warning_dialog
 
30
from bzrlib.plugins.gtk.dialog import error_dialog, warning_dialog
31
31
from guifiles import GLADEFILENAME
32
32
 
 
33
from bzrlib.plugins.gtk.errors import show_bzr_error
 
34
 
33
35
 
34
36
class OliveMkdir:
35
37
    """ Display the Make directory dialog and perform the needed actions. """
53
55
        """ Display the Make directory dialog. """
54
56
        self.window.show_all()
55
57
 
 
58
    @show_bzr_error
56
59
    def mkdir(self, widget):
57
60
        # Get the widgets
58
61
        entry = self.glade.get_widget('entry_mkdir')
77
80
                                 _('Please specify another name to continue.'))
78
81
                else:
79
82
                    raise
80
 
            except errors.NotBranchError:
81
 
                warning_dialog(_('Directory is not in a branch'),
82
 
                               _('You can only create a non-versioned directory.'))
83
83
        else:
84
84
            # Just a simple directory
85
85
            try: