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

commit: standalone commit tool now responds to subrepo open requests

Changeset db7f2d68ec4f

Parent 25406afee840

by Steve Borho

Changes to one file · Browse files at db7f2d68ec4f Showing diff from parent 25406afee840 Diff from another changeset...

 
28
29
30
 
31
32
33
 
42
43
44
 
45
46
47
 
886
887
888
889
 
890
891
892
 
894
895
896
 
897
898
899
 
920
921
922
 
 
 
 
 
 
923
924
925
 
28
29
30
31
32
33
34
 
43
44
45
46
47
48
49
 
888
889
890
 
891
892
893
894
 
896
897
898
899
900
901
902
 
923
924
925
926
927
928
929
930
931
932
933
934
@@ -28,6 +28,7 @@
 class CommitWidget(QWidget):   'A widget that encompasses a StatusWidget and commit extras'   commitButtonName = pyqtSignal(QString) + linkActivated = pyqtSignal(QString)   showMessage = pyqtSignal(unicode)   commitComplete = pyqtSignal()   @@ -42,6 +43,7 @@
  self.stwidget = status.StatusWidget(pats, opts, root, self)   self.stwidget.showMessage.connect(self.showMessage)   self.stwidget.progress.connect(self.progress) + self.stwidget.linkActivated.connect(self.linkActivated)   self.msghistory = []   self.qref = False   @@ -886,7 +888,7 @@
  layout = QVBoxLayout()   self.setLayout(layout)   - commit = CommitWidget(pats, opts, None, False, self) + commit = CommitWidget(pats, opts, opts.get('root'), False, self)   layout.addWidget(commit, 1)     self.statusbar = cmdui.ThgStatusBar(self) @@ -894,6 +896,7 @@
  layout.addWidget(self.statusbar)   commit.showMessage.connect(self.statusbar.showMessage)   commit.progress.connect(self.statusbar.progress) + commit.linkActivated.connect(self.linkActivated)     BB = QDialogButtonBox   bb = QDialogButtonBox(BB.Ok|BB.Cancel|BB.Discard) @@ -920,6 +923,12 @@
  self.commit.reload()   self.updateUndo()   + def linkActivated(self, link): + link = hglib.fromunicode(link) + if link.startswith('subrepo:'): + from tortoisehg.hgqt.run import qtrun + qtrun(run, ui.ui(), root=link[8:]) +   def setButtonName(self, name):   self.bb.button(QDialogButtonBox.Ok).setText(name)