# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1237390634 -3600
# Node ID 041ece8b672ac5b94c32bf14c809abae297d771f
# Parent 1c61eacc2d9c39ad56539555eb9b87a2756e5f55
synch: allow rev for email
diff -r 1c61eacc2d9c -r 041ece8b672a hggtk/synch.py
--- a/hggtk/synch.py Mit Mär 18 16:34:52 2009 +0100
+++ b/hggtk/synch.py Mit Mär 18 16:37:14 2009 +0100
@@ -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()
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop