Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.1, 1.9.2, and 1.9.3

commit: use cmdui.Runner to set branch

This allows hooks to be run, and shows users the command involved.

Changeset 2edd8f27dc58

Parent 8814964090f9

by Steve Borho

Changes to one file · Browse files at 2edd8f27dc58 Showing diff from parent 8814964090f9 Diff from another changeset...

 
515
516
517
 
 
 
518
519
520
 
543
544
545
546
 
 
547
548
549
 
562
563
564
565
566
567
568
569
 
515
516
517
518
519
520
521
522
523
 
546
547
548
 
549
550
551
552
553
 
566
567
568
 
 
569
570
571
@@ -515,6 +515,9 @@
  parent=self)   self.msgte.setFocus()   return + + commandlines = [] +   if self.branchop is None:   brcmd = []   elif self.branchop == False: @@ -543,7 +546,8 @@
  'Cancel\t- Cancel this commit') % self.branchop,   self, (_('&Yes'), _('&No'), _('Cancel')), 2, 2).run()   if resp == 0: - repo.dirstate.setbranch(branch) + commandlines.append(['branch', '--repository', repo.root, + '--force', branch])   elif resp == 2:   return   files = self.stwidget.getChecked('MAR?!S') @@ -562,8 +566,6 @@
  return   self.addUsernameToHistory(user)   - commandlines = [] -   checkedUnknowns = self.stwidget.getChecked('?I')   if checkedUnknowns:   res = qtlib.CustomPrompt(