2008/9/20 TK Soh <[EMAIL PROTECTED]>

>
> Can you post the patch again, this time with proper headers? let me
> know if you somehow need any help.
>

I apologise for this taking so long, I hope this patch is more usefull.

Regards,
Peer
# HG changeset patch
# User Peer Sommerlund <[EMAIL PROTECTED]>
# Date 1221591338 -7200
# Node ID d2f92d2f5c6e74521a848947b4594015244f4e5d
# Parent  3e5d656d3bb89b6ab991252d7373e9bdb9050e64
sync: Make sure patchbomb extension is loaded

When trying to email patches without having the mailbomb extension
enabled, you would get some traceback complaining about a missing
response function. This patch loads the extension no matter what
the hgrc file does.

diff --git a/hggtk/hgemail.py b/hggtk/hgemail.py
--- a/hggtk/hgemail.py
+++ b/hggtk/hgemail.py
@@ -203,13 +203,7 @@
             self.repo = None
             return
 
-        for name, module in extensions.extensions():
-            if name == 'patchbomb':
-                break
-        else:
-            error_dialog(self, 'Email not enabled',
-                    'You must enable the patchbomb extension to use this tool')
-            self.response(gtk.RESPONSE_CANCEL)
+        extensions.load(self.repo.ui, 'patchbomb', None)
 
         if initial:
             # Only zap these fields at startup
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to