/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 commit.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-03-15 12:43:48 UTC
  • mto: (126.1.38 bzr-gtk)
  • mto: This revision was merged to the branch mainline in revision 172.
  • Revision ID: szilveszter.farkas@gmail.com-20070315124348-0nx0zb7fv4pa8xk6
Fix the indentation error in the TortoiseBZR test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        
91
91
        # Create the widgets
92
92
        self._button_commit = gtk.Button(_("Comm_it"), use_underline=True)
 
93
        self._check_strict = gtk.CheckButton(_("_Allow unknown files"),
 
94
                                             use_underline=True)
93
95
        self._expander_files = gtk.Expander(_("File(s) to commit"))
94
96
        self._vpaned_main = gtk.VPaned()
95
97
        self._scrolledwindow_files = gtk.ScrolledWindow()
154
156
            if have_nm:
155
157
                # 3 is the enum value for STATE_CONNECTED
156
158
                self._check_local.set_active(dbus_iface.state() != 3)
 
159
        self.vbox.pack_start(self._check_strict, False, False)
157
160
        
158
161
        # Create the file list
159
162
        self._create_file_view()
217
220
            local = self._check_local.get_active()
218
221
        else:
219
222
            local = False
220
 
 
221
 
        if list(self.wt.unknowns()) != []:
222
 
            response = question_dialog(_("Commit with unknowns?"),
223
 
               _("Unknown files exist in the working tree. Commit anyway?"))
224
 
            if response == gtk.RESPONSE_NO:
225
 
                return
226
223
        
227
224
        try:
228
225
            self.wt.commit(message,
229
226
                       allow_pointless=False,
230
 
                       strict=False,
 
227
                       strict=self._check_strict.get_active(),
231
228
                       local=local,
232
229
                       specific_files=specific_files)
233
230
        except errors.PointlessCommit:
236
233
            if response == gtk.RESPONSE_YES:
237
234
                self.wt.commit(message,
238
235
                               allow_pointless=True,
239
 
                               strict=False,
 
236
                               strict=self._check_strict.get_active(),
240
237
                               local=local,
241
238
                               specific_files=specific_files)
242
239
        self.response(gtk.RESPONSE_OK)