# HG changeset patch # User Yuki KODAMA <endflow....@gmail.com> # Date 1252089968 -32400 # Node ID aa1ab03de9673a4b9742764395d541d9c125c60a # Parent 2a5b6ac2dfb7603468d028402708355ee1959846 history: add 'export patches from here to selected' command
diff --git a/hggtk/history.py b/hggtk/history.py --- a/hggtk/history.py +++ b/hggtk/history.py @@ -508,6 +508,8 @@ self.email_revs)) m.append(create_menu(_('bundle from here to selected'), self.bundle_revs)) + m.append(create_menu(_('export patches from here to selected'), + self.export_revs)) self.cmenu_merge2 = create_menu(_('_merge with'), self.merge) m.append(self.cmenu_merge2) @@ -846,6 +848,21 @@ dlg.present() dlg.set_transient_for(None) + def export_revs(self, menuitem): + result = gtklib.NativeFolderSelectDialog(title=_('Save patches to'), + initial=self.repo.root).run() + if result: + revs = list(self.revrange) + revs.sort() + rev = '%d:%d' % (revs[0], revs[1]) + # In case new export args are added in the future, merge the + # hg defaults + opts= self.merge_opts(commands.table['^export'][1], ()) + opts['output'] = os.path.join(result, '%b_rev%R.patch') + def dohgexport(): + commands.export(self.ui,self.repo, rev, **opts) + s, o = self._hg_call_wrapper('Export', dohgexport, False) + def bundle_revs(self, menuitem): revrange = list(self.revrange) revrange.sort()
thg-kuy_rev3838.patch
Description: Binary data
------------------------------------------------------------------------------ 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