/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/frontend/gtk/remove.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-01 16:16:31 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060801161631-ca1ac79e3726e307
Visual feedback when Olive is busy; follow bzr API changes; commit dialog update

2006-08-01  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/push.py: now the number of pushed revisions gets
      displayed (Fixed: #54698)
    * olive/backend/info.py: added is_checkout()
    * olive/frontend/gtk/commit.py: local commit checkbox shows up only if the
      current directory is a checkout
    * olive/backend/fileops.py: upgraded to new API (compare_trees deprecated)
    * many files: the cursor changes to a watch when performing time consuming
      operations (Fixed: #54015)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        self.glade.signal_autoconnect(dic)
50
50
 
51
51
    def display(self):
52
 
        """ Display the Add file(s) dialog. """
 
52
        """ Display the Remove file(s) dialog. """
53
53
        self.window.show_all()
54
54
        
55
55
    def remove(self, widget):
61
61
        
62
62
        directory = self.comm.get_path()
63
63
        
 
64
        self.comm.set_busy(self.window)
64
65
        if radio_selected.get_active():
65
66
            # Add only the selected file
66
67
            filename = self.comm.get_selected_right()
73
74
                fileops.remove([directory + '/' + filename])
74
75
            except errors.NotBranchError:
75
76
                dialog.error_dialog('The directory is not a branch.')
 
77
                self.comm.set_busy(self.window, False)
76
78
                return
77
79
            except errors.NotVersionedError:
78
80
                dialog.error_dialog('Selected file is not versioned.')
 
81
                self.comm.set_busy(self.window, False)
79
82
                return
80
83
            except:
81
84
                raise
85
88
                fileops.remove([directory], True)
86
89
            except errors.NotBranchError:
87
90
                dialog.error_dialog('The directory is not a branch.')
 
91
                self.comm.set_busy(self.window, False)
88
92
                return
89
93
            except errors.NoMatchingFiles:
90
94
                dialog.warning_dialog('No matching files were found.')
 
95
                self.comm.set_busy(self.window, False)
91
96
            except:
92
97
                raise
93
98
        else: