Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

synch: allow rev for email

Changeset b99905837d30

Parent 6f9e9bde65a6

by Simon Heimberg

Changes to one file · Browse files at b99905837d30 Showing diff from parent 6f9e9bde65a6 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​synch.py Stacked
 
470
471
472
 
473
474
 
 
 
 
475
476
477
478
 
 
479
480
 
481
482
483
 
470
471
472
473
474
 
475
476
477
478
479
480
481
482
483
484
485
 
486
487
488
489
@@ -470,14 +470,20 @@
  self.fill_path_combo()     def _email_clicked(self, toolbutton, data=None): + opts = []   path = fromutf(self._pathtext.get_text()).strip() - if not path: + rev = self._get_advanced_options().get('rev') + if path: + opts.extend(['--outgoing', path]) + elif not rev:   info_dialog(self, 'No repository selected',   'Select a peer repository to compare with')   self._pathbox.grab_focus()   return + if rev: + opts.extend(rev)   from hgemail import EmailDialog - dlg = EmailDialog(self.root, ['--outgoing', path]) + dlg = EmailDialog(self.root, opts)   dlg.set_transient_for(self)   dlg.show_all()   dlg.present()