# HG changeset patch # User Ludovic Chabant # Date 1500763738 25200 # Node ID 03cc0603800e39d4c73ab965aca7f306e80ca8e1 # Parent 0df92b70e9f0360b05d6ee0bc458e0e707eb08b2 Fix incorrect call for `Abort`, and add error message when MEU is outdated. diff -r 0df92b70e9f0 -r 03cc0603800e mercurial_all_paths.py --- a/mercurial_all_paths.py Thu May 18 17:36:23 2017 +0200 +++ b/mercurial_all_paths.py Sat Jul 22 15:48:58 2017 -0700 @@ -31,10 +31,15 @@ try: import mercurial_extension_utils except ImportError: - raise util.Abort(_("""Can not import mercurial_extension_utils. + raise mercurial.util.Abort(_("""Can not import mercurial_extension_utils. Please install this module in Python path. See Installation chapter in https://bitbucket.org/Mekk/mercurial-dynamic_username/ for details (and for info about TortoiseHG on Windows, or other bundled Python).""")) + + if not hasattr(mercurial_extension_utils, 'command'): + raise mercurial.util.Abort(_("""Your mercurial_extension_utils is outdated. +See Installation chapter in https://bitbucket.org/Mekk/mercurial-dynamic_username/ for details.""")) + return mercurial_extension_utils meu = import_meu()