Mercurial > hg-allpaths
changeset 76:03cc0603800e
Fix incorrect call for `Abort`, and add error message when MEU is outdated.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 22 Jul 2017 15:48:58 -0700 |
parents | 0df92b70e9f0 |
children | 772d75b1a030 |
files | mercurial_all_paths.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()