Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

commit: allow qnew when there are no changes

Changeset 2e9e5a24e21b

Parent 76265ed84c6e

by Simon Heimberg

Changes to one file · Browse files at 2e9e5a24e21b Showing diff from parent 76265ed84c6e Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​commit.py Stacked
 
299
300
301
302
 
 
303
304
305
 
489
490
491
492
 
493
494
495
 
525
526
527
 
 
 
528
529
530
 
299
300
301
 
302
303
304
305
306
 
490
491
492
 
493
494
495
496
 
526
527
528
529
530
531
532
533
534
@@ -299,7 +299,8 @@
  commit_list = self._relevant_files(commitable)   if len(commit_list) > 0:   self._commit_selected(commit_list) - return True + elif len(self.filemodel) == 0 and self._get_qnew_name(): + self._commit_selected([])   else:   Prompt('Nothing Commited', 'No committable files selected', self).run()   return True @@ -489,7 +490,7 @@
  # won't get locked up by potential large commit. CmdDialog will also   # display the progress of the commit operation.   cmdline = ['hg', 'commit', '--verbose', '--repository', self.repo.root] - qnew = self.qnew_name and self.qnew_name.get_text().strip() + qnew = self._get_qnew_name()   if qnew:   qnew = fromutf(qnew)   cmdline[1] = 'qnew' @@ -525,6 +526,9 @@
  tip = cl.node(nullrev + len(cl))   return hex(tip)   + def _get_qnew_name(self): + return self.qnew_name and self.qnew_name.get_text().strip() or '' +   def _qnew_changed(self, element):   mqmode = self.mqmode   self.mqmode = not self.qnew_name.get_text().strip()