Mercurial > hg-allpaths
comparison mercurial_all_paths.py @ 78:02b85549369b default tip
Update for Mercurial 4.8.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 03 Nov 2018 23:40:04 -0700 |
parents | 772d75b1a030 |
children |
comparison
equal
deleted
inserted
replaced
77:772d75b1a030 | 78:02b85549369b |
---|---|
10 import os | 10 import os |
11 import sys | 11 import sys |
12 import mercurial.util | 12 import mercurial.util |
13 import mercurial.commands | 13 import mercurial.commands |
14 import mercurial.cmdutil | 14 import mercurial.cmdutil |
15 import mercurial.registrar | |
15 from mercurial.i18n import _ | 16 from mercurial.i18n import _ |
16 | 17 |
17 | 18 |
18 def import_meu(): | 19 def import_meu(): |
19 """Importing mercurial_extension_utils so it can be found also outside | 20 """Importing mercurial_extension_utils so it can be found also outside |
43 | 44 |
44 meu = import_meu() | 45 meu = import_meu() |
45 if meu: | 46 if meu: |
46 command_decorator = meu.command | 47 command_decorator = meu.command |
47 else: | 48 else: |
48 command_decorator = mercurial.cmdutil.command | 49 command_decorator = mercurial.registrar.command |
49 | 50 |
50 | 51 |
51 # pylint:disable=invalid-name,broad-except,line-too-long | 52 # pylint:disable=invalid-name,broad-except,line-too-long |
52 | 53 |
53 def _find_all_paths(ui, skip_ignored=False, sort_by_priority=False): | 54 def _find_all_paths(ui, skip_ignored=False, sort_by_priority=False): |