Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: add toolbutton to syncbar for email outgoing

Changeset 020838e36042

Parent 3b1e1fbd27dc

by Steve Borho

Changes to one file · Browse files at 020838e36042 Showing diff from parent 3b1e1fbd27dc Diff from another changeset...

 
728
729
730
 
 
731
732
733
 
751
752
753
 
754
755
756
 
1061
1062
1063
 
 
 
 
 
 
 
 
 
 
 
1064
1065
1066
 
728
729
730
731
732
733
734
735
 
753
754
755
756
757
758
759
 
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
@@ -728,6 +728,8 @@
  _('Determine and mark outgoing changesets'))   push = syncbox.append_stock(gtk.STOCK_GOTO_TOP,   _('Push outgoing changesets')) + email = syncbox.append_stock(gtk.STOCK_GOTO_LAST, + _('Email outgoing changesets'))   conf = syncbox.append_stock(gtk.STOCK_PREFERENCES,   _('Configure aliases and after pull behavior'))   stop = syncbox.append_stock(gtk.STOCK_STOP, @@ -751,6 +753,7 @@
  outgoing.connect('clicked', self.outgoing_clicked, urlcombo, stop)   push.connect('clicked', self.push_clicked, urlcombo)   conf.connect('clicked', self.conf_clicked, urlcombo) + email.connect('clicked', self.email_clicked, urlcombo)     syncbox.append_widget(gtk.Label(_('After Pull:')))   ppulldata = [('none', _('Nothing')), ('update', _('Update'))] @@ -1061,6 +1064,17 @@
  stop.set_sensitive(True)   gobject.timeout_add(50, out_wait)   + def email_clicked(self, toolbutton, combo): + path = hglib.fromutf(combo.get_child().get_text()).strip() + if not path: + gdialog.Prompt(_('No repository selected'), + _('Select a peer repository to compare with'), + self).run() + combo.get_child().grab_focus() + return + opts = ['--outgoing', path] + dlg = hgemail.EmailDialog(self.repo.root, opts) + self.show_dialog(dlg)     def push_clicked(self, toolbutton, combo):   entry = combo.get_child()