Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/pathutil.py @ 52883:0bd91b0a1a93
rust-pyo3-dirstate: using from Python
author | Georges Racinet <georges.racinet@cloudcrane.io> |
---|---|
date | Wed, 05 Feb 2025 18:41:32 +0100 |
parents | f4733654f144 |
children | bde94bd8e8a2 |
comparison
equal
deleted
inserted
replaced
52882:38e16da74aea | 52883:0bd91b0a1a93 |
---|---|
20 policy, | 20 policy, |
21 pycompat, | 21 pycompat, |
22 util, | 22 util, |
23 ) | 23 ) |
24 | 24 |
25 rustdirs = policy.importrust('dirstate', 'Dirs') | 25 rustdirs = policy.importrust('dirstate', 'Dirs', pyo3=True) |
26 parsers = policy.importmod('parsers') | 26 parsers = policy.importmod('parsers') |
27 | 27 |
28 | 28 |
29 def _lowerclean(s: bytes) -> bytes: | 29 def _lowerclean(s: bytes) -> bytes: |
30 return encoding.hfsignoreclean(s.lower()) | 30 return encoding.hfsignoreclean(s.lower()) |