Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-pull-mirror-test2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.0rc1 on 2025-03-27 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
heptapod
Testing Projects
hg-pull-mirror-test2
Commits
ff461baa9c4e
Commit
ff461baa9c4e
authored
17 years ago
by
Benoit Boissinot
Browse files
Options
Downloads
Plain Diff
merge with -stable
parents
1a028bdaddce
86cd6fd61042
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mercurial/hgweb/server.py
+9
-21
9 additions, 21 deletions
mercurial/hgweb/server.py
with
9 additions
and
21 deletions
mercurial/hgweb/server.py
+
9
−
21
View file @
ff461baa
...
...
@@ -203,16 +203,4 @@
return
open
(
opt
,
'
w
'
)
return
default
def
create_getconfig
(
section
,
*
uis
):
# uis are least significant to most
def
getconfig
(
var
,
default
=
None
):
val
=
default
for
u
in
uis
:
val
=
u
.
config
(
section
,
var
,
val
)
return
val
def
getconfigbool
(
var
,
default
=
None
):
val
=
default
for
u
in
uis
:
val
=
u
.
configbool
(
section
,
var
,
val
)
return
(
getconfig
,
getconfigbool
)
if
repo
is
None
:
...
...
@@ -218,3 +206,3 @@
if
repo
is
None
:
getconfig
,
getconfigbool
=
create_getconfig
(
"
web
"
,
ui
)
myui
=
ui
else
:
...
...
@@ -220,12 +208,12 @@
else
:
getconfig
,
getconfigbool
=
create_getconfig
(
"
web
"
,
ui
,
repo
.
ui
)
address
=
get
config
(
"
address
"
,
""
)
port
=
int
(
get
config
(
"
port
"
,
8000
))
use_ipv6
=
get
configbool
(
"
ipv6
"
)
webdir_conf
=
get
config
(
"
webdir_conf
"
)
ssl_cert
=
get
config
(
"
certificate
"
)
accesslog
=
openlog
(
get
config
(
"
accesslog
"
,
"
-
"
),
sys
.
stdout
)
errorlog
=
openlog
(
get
config
(
"
errorlog
"
,
"
-
"
),
sys
.
stderr
)
myui
=
repo
.
ui
address
=
myui
.
config
(
"
web
"
,
"
address
"
,
""
)
port
=
int
(
myui
.
config
(
"
web
"
,
"
port
"
,
8000
))
use_ipv6
=
myui
.
configbool
(
"
web
"
,
"
ipv6
"
)
webdir_conf
=
myui
.
config
(
"
web
"
,
"
webdir_conf
"
)
ssl_cert
=
myui
.
config
(
"
web
"
,
"
certificate
"
)
accesslog
=
openlog
(
myui
.
config
(
"
web
"
,
"
accesslog
"
,
"
-
"
),
sys
.
stdout
)
errorlog
=
openlog
(
myui
.
config
(
"
web
"
,
"
errorlog
"
,
"
-
"
),
sys
.
stderr
)
if
use_threads
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment