# HG changeset patch # User Emmanuel Rosa <goaway1...@gmail.com> # Date 1251505118 14400 # Node ID 2bd416cfdf800d6fd3c56da171c12117b86ef4d9 # Parent f6ed171813c0ffd512f2f5364715e8e7a9832f09 history: context menu to qfinish revs
Allows user to commit the selected range applied MQ patches into history. NOTE: Does not check if selected revs are MQ patches. diff -r f6ed171813c0 -r 2bd416cfdf80 hggtk/history.py --- a/hggtk/history.py Sat Aug 29 01:40:25 2009 +0900 +++ b/hggtk/history.py Fri Aug 28 20:18:38 2009 -0400 @@ -440,6 +440,8 @@ self.bundle_revs)) m.append(create_menu(_('import as MQ patches from here to selected'), self.mqimport_revs)) + m.append(create_menu(_('finish MQ patches from here to selected'), + self.mqfinish_revs)) self.cmenu_merge2 = create_menu(_('_merge with'), self.merge) m.append(self.cmenu_merge2) @@ -791,6 +793,21 @@ self.changeview._buffer.set_text('') self.changeview._filelist.clear() + def mqfinish_revs(self, menuitem): + """Finish revision range as MQ patches.""" + revs = list(self.revs) + revs.sort() + revrange = '%s:%s' % (str(revs[0]), str(revs[1])) + cmdline = ['hg', 'qfinish', 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) ------------------------------------------------------------------------------ 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