Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1.3, 1.1.4, and 1.1.5

stable init: launch commit tool after succesful init (gtk)

Closes #1308

Changeset 11993bb5ac68

Parent 427efc03bf09

by Johan Samyn

Changes to one file · Browse files at 11993bb5ac68 Showing diff from parent 427efc03bf09 Diff from another changeset...

 
62
63
64
 
65
66
 
67
68
69
 
72
73
74
 
75
76
77
 
140
141
142
143
 
 
 
 
 
 
 
 
 
 
 
144
145
146
 
62
63
64
65
66
67
68
69
70
71
 
74
75
76
77
78
79
80
 
143
144
145
 
146
147
148
149
150
151
152
153
154
155
156
157
158
159
@@ -62,8 +62,10 @@
  _('Add special files (.hgignore, ...)'))   self.optoldrepo = gtk.CheckButton(   _('Make repo compatible with Mercurial 1.0')) + self.optrunci = gtk.CheckButton(_('Run Commit after init'))   table.add_row(self.optspfiles, xpad=2)   table.add_row(self.optoldrepo, xpad=2) + table.add_row(self.optrunci, xpad=2)     # set option states   self.optspfiles.set_active(True) @@ -72,6 +74,7 @@
  self.optoldrepo.set_active(not usefncache)   except:   pass + self.optrunci.set_active(False)     def dialog_response(self, dialog, response_id):   # Create button @@ -140,7 +143,17 @@
  pass     shlib.shell_notify([dest]) - self.response(gtk.RESPONSE_CLOSE) + + if self.optrunci.get_active(): + os.chdir(dest) + from tortoisehg.hgtk.hgtk import gtkrun + from tortoisehg.hgtk.commit import run as cirun + ciui = ui.ui() + self.hide() + gtkrun(cirun, ciui) + return + else: + self.response(gtk.RESPONSE_CLOSE)    def run(ui, *pats, **opts):   return InitDialog(pats)