Mercurial > hg > hg-fastimport
comparison hgext3rd/fastimport/vendor/python_fastimport/processors/info_processor.py @ 88:2fc99e3479d9
python-fastimport: Import our own modules using relative pathing
This allows python-fastimport to be embedded as vendor code within
other modules.
This patch has been accepted upstream.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 19 Jan 2021 23:00:01 +0000 |
| parents | 28704a2a7461 |
| children |
comparison
equal
deleted
inserted
replaced
| 87:51664f5abc3a | 88:2fc99e3479d9 |
|---|---|
| 16 """Import processor that dump stats about the input (and doesn't import).""" | 16 """Import processor that dump stats about the input (and doesn't import).""" |
| 17 | 17 |
| 18 from __future__ import absolute_import | 18 from __future__ import absolute_import |
| 19 | 19 |
| 20 from .. import ( | 20 from .. import ( |
| 21 commands, | |
| 22 processor, | |
| 21 reftracker, | 23 reftracker, |
| 22 ) | 24 ) |
| 23 from ..helpers import ( | 25 from ..helpers import ( |
| 24 invert_dict, | 26 invert_dict, |
| 25 invert_dictset, | 27 invert_dictset, |
| 26 ) | |
| 27 from fastimport import ( | |
| 28 commands, | |
| 29 processor, | |
| 30 ) | 28 ) |
| 31 import stat | 29 import stat |
| 32 | 30 |
| 33 | 31 |
| 34 class InfoProcessor(processor.ImportProcessor): | 32 class InfoProcessor(processor.ImportProcessor): |
