Mercurial > hg
annotate mercurial/__main__.py @ 52164:e01e84e5e426
rust-revlog: add a Rust-only `InnerRevlog`
This mirrors the Python `InnerRevlog` and will be used in a future patch
to replace said Python implementation. This allows us to start doing more
things in pure Rust, in particular reading and writing operations.
A lot of changes have to be introduced all at once, it wouldn't be very
useful to separate this patch IMO since all of them are either interlocked
or only useful with the rest.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 10 Oct 2024 10:34:51 +0200 |
parents | 1c5810ce737e |
children |
rev | line source |
---|---|
51864
1c5810ce737e
typing: add `from __future__ import annotations` to remaining source files
Matt Harbison <matt_harbison@yahoo.com>
parents:
50697
diff
changeset
|
1 from __future__ import annotations |
1c5810ce737e
typing: add `from __future__ import annotations` to remaining source files
Matt Harbison <matt_harbison@yahoo.com>
parents:
50697
diff
changeset
|
2 |
1c5810ce737e
typing: add `from __future__ import annotations` to remaining source files
Matt Harbison <matt_harbison@yahoo.com>
parents:
50697
diff
changeset
|
3 |
50697
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
4 def run(): |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
5 from . import demandimport |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
6 |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
7 with demandimport.tracing.log('hg script'): |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
8 demandimport.enable() |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
9 from . import dispatch |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
10 |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
11 dispatch.run() |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
12 |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
13 |
50696
eb01d3a65ad8
library: enable runpy invocation on mercurial package
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
14 if __name__ == '__main__': |
50697
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
15 run() |