Pushed with minor changes, thanks. On Sat, Aug 15, 2009 at 11:43 AM, <goaway1...@gmail.com> wrote: > # HG changeset patch > # User Emmanuel Rosa <goaway1...@gmail.com> > # Date 1250354551 14400 > # Node ID 886fd6525c08b58bf1df1908136d82c347ccff6c > # Parent 2ec863d571cd513a93a1474ea19886d8b8bd46ae > synch: add shelve shortcut > > Addresses: #491 > > diff -r 2ec863d571cd -r 886fd6525c08 hggtk/synch.py > --- a/hggtk/synch.py Fri Aug 14 23:50:02 2009 -0500 > +++ b/hggtk/synch.py Sat Aug 15 12:42:31 2009 -0400 > @@ -20,7 +20,7 @@ > from thgutil.i18n import _ > from thgutil import hglib, settings, paths > > -from hggtk import dialog, gtklib, hgthread, history, thgconfig, hgemail > +from hggtk import dialog, gtklib, hgthread, history, thgconfig, hgemail, > thgshelve, hgtk > > class SynchDialog(gtk.Window): > def __init__(self, repos=[], pushmode=False, fromlog=False): > @@ -88,6 +88,10 @@ > self.email_clicked, > tip=_('Email local outgoing changes to' > ' one or more recipients')), > + self.toolbutton(gtk.STOCK_UNDO, > + _('Shelve'), > + self.shelve_clicked, > + tip=_('Shelve uncommited changes')), > gtk.SeparatorToolItem(), > self.stop_button, > gtk.SeparatorToolItem(), > @@ -505,6 +509,9 @@ > dlg.present() > dlg.set_transient_for(None) > > + def shelve_clicked(self, toolbutton, data=None): > + hgtk.gtkrun(thgshelve.run, self.ui) > + > def incoming_clicked(self, toolbutton, data=None): > aopts = self.get_advanced_options() > cmd = ['incoming'] > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Tortoisehg-develop mailing list > Tortoisehg-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop >
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop