Mercurial > hg
annotate mercurial/__main__.py @ 52095:3e7b9357bbb8
tests: add coverage to for `HGCB_BUNDLE_BASENAME` with special characters
Per request on IRC, to show the behavior of dropping the quoting of
`HGCB_BUNDLE_BASENAME` in the next commit. This current failure is basically
the same error and output that currently happens on Windows with any path (even
without the embedded quote). The only difference is Windows doesn't print the
`cp: cannot stat ...` line.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 Oct 2024 15:24:55 -0400 |
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() |