# HG changeset patch # User Yuki KODAMA <endflow....@gmail.com> # Date 1251477625 -32400 # Node ID f6ed171813c0ffd512f2f5364715e8e7a9832f09 # Parent 159644bbf89c964872f0dd3f11006508d64302e8 history: add context menu for importing revision range as MQ patches
diff --git a/hggtk/history.py b/hggtk/history.py --- a/hggtk/history.py +++ b/hggtk/history.py @@ -438,6 +438,8 @@ self.email_revs)) m.append(create_menu(_('bundle from here to selected'), self.bundle_revs)) + m.append(create_menu(_('import as MQ patches from here to selected'), + self.mqimport_revs)) self.cmenu_merge2 = create_menu(_('_merge with'), self.merge) m.append(self.cmenu_merge2) @@ -774,6 +776,21 @@ dlg.run() dlg.hide() + def mqimport_revs(self, menuitem): + """Import revision range as MQ patches.""" + revs = list(self.revs) + revs.sort() + revrange = '%s:%s' % (str(revs[0]), str(revs[1])) + cmdline = ['hg', 'qimport', '--rev', revrange] + dialog = hgcmd.CmdDialog(cmdline) + dialog.show_all() + dialog.run() + dialog.hide() + self.repo.invalidate() + self.reload_log() + self.changeview._buffer.set_text('') + self.changeview._filelist.clear() + def rebase_selected(self, menuitem): """Rebase revision on top of selection (1st on top of 2nd).""" revs = list(self.revs)
thg-kuy_rev3752.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