Mercurial > hg-allpaths
comparison mercurial_all_paths.py @ 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 | d262139732f7 |
children | 772d75b1a030 |
comparison
equal
deleted
inserted
replaced
75:0df92b70e9f0 | 76:03cc0603800e |
---|---|
29 os.path.join(os.path.dirname(my_dir), "mercurial-extension_utils"), | 29 os.path.join(os.path.dirname(my_dir), "mercurial-extension_utils"), |
30 ]) | 30 ]) |
31 try: | 31 try: |
32 import mercurial_extension_utils | 32 import mercurial_extension_utils |
33 except ImportError: | 33 except ImportError: |
34 raise util.Abort(_("""Can not import mercurial_extension_utils. | 34 raise mercurial.util.Abort(_("""Can not import mercurial_extension_utils. |
35 Please install this module in Python path. | 35 Please install this module in Python path. |
36 See Installation chapter in https://bitbucket.org/Mekk/mercurial-dynamic_username/ for details | 36 See Installation chapter in https://bitbucket.org/Mekk/mercurial-dynamic_username/ for details |
37 (and for info about TortoiseHG on Windows, or other bundled Python).""")) | 37 (and for info about TortoiseHG on Windows, or other bundled Python).""")) |
38 | |
39 if not hasattr(mercurial_extension_utils, 'command'): | |
40 raise mercurial.util.Abort(_("""Your mercurial_extension_utils is outdated. | |
41 See Installation chapter in https://bitbucket.org/Mekk/mercurial-dynamic_username/ for details.""")) | |
42 | |
38 return mercurial_extension_utils | 43 return mercurial_extension_utils |
39 | 44 |
40 meu = import_meu() | 45 meu = import_meu() |
41 | 46 |
42 | 47 |