Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

history: Add menu option to generate bundles from rev to tip

Changeset 95c32020f03b

Parent 8c8ef25eb7c3

by Steve Borho

Changes to one file · Browse files at 95c32020f03b Showing diff from parent 8c8ef25eb7c3 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​history.py Stacked
 
317
318
319
 
320
321
322
 
518
519
520
 
 
 
 
 
 
 
 
 
 
 
 
 
 
521
522
523
 
317
318
319
320
321
322
323
 
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
@@ -317,6 +317,7 @@
  _menu.append(self._cmenu_merge)   _menu.append(create_menu('_export patch', self._export_patch))   _menu.append(create_menu('e_mail patch', self._email_patch)) + _menu.append(create_menu('_bundle rev:tip', self._bundle_rev_to_tip))   _menu.append(create_menu('add/remove _tag', self._add_tag))   _menu.append(create_menu('backout revision', self._backout_rev))   _menu.append(create_menu('_revert', self._revert)) @@ -518,6 +519,20 @@
  commands.export(self.ui,self.repo,str(rev),**exportOpts)   success, outtext = self._hg_call_wrapper("Export",dohgexport,False)   + def _bundle_rev_to_tip(self, menuitem): + rev = self.currow[treemodel.REVID] + filename = "%s_rev%s_to_tip.hg" % (os.path.basename(self.repo.root), rev) + result = NativeSaveFileDialogWrapper(Title = "Write bundle to", + InitialDir=self.repo.root, + FileName=filename).run() + if result: + from hgcmd import CmdDialog + cmdline = ['hg', 'bundle', '--base', str(rev), result] + dlg = CmdDialog(cmdline) + dlg.show_all() + dlg.run() + dlg.hide() +   def _email_patch(self, menuitem):   from hgemail import EmailDialog   rev = self.currow[treemodel.REVID]