Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

commit: show branch name, allow it to be changed

Changeset 9a9e4fe2ac0b

Parent 26821ff3a5e3

by Steve Borho

Changes to one file · Browse files at 9a9e4fe2ac0b Showing diff from parent 26821ff3a5e3 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​commit.py Stacked
 
127
128
129
 
 
 
 
 
 
130
131
132
 
205
206
207
 
208
209
210
 
435
436
437
 
 
 
 
438
439
440
 
127
128
129
130
131
132
133
134
135
136
137
138
 
211
212
213
214
215
216
217
 
442
443
444
445
446
447
448
449
450
451
@@ -127,6 +127,12 @@
  vbox = gtk.VBox()     mbox = gtk.HBox() + + label = gtk.Label('Branch: ') + mbox.pack_start(label, False, False, 2) + self.branchentry = gtk.Entry() + mbox.pack_start(self.branchentry, False, False, 2) +   label = gtk.Label('Recent Commit Messages: ')   mbox.pack_start(label, False, False, 2)   self.msg_cbbox = gtk.combo_box_new_text() @@ -205,6 +211,7 @@
  def reload_status(self):   if not self._ready: return False   success = GStatus.reload_status(self) + self.branchentry.set_text(self.repo.dirstate.branch())   self._check_merge()   self._check_patch_queue()   self._check_undo() @@ -435,6 +442,10 @@
  self.ui = self.repo.ui   return   + newbranch = self.branchentry.get_text() + if newbranch != self.repo.dirstate.branch(): + self.repo.dirstate.setbranch(newbranch) +   # call the threaded CmdDialog to do the commit, so the the large commit   # won't get locked up by potential large commit. CmdDialog will also   # display the progress of the commit operation.