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
Show more breadcrumbs
heptapod
Testing Projects
hg-pull-mirror-test2
Commits
79279b55
Commit
79279b55
authored
17 years ago
by
Benoit Boissinot
Browse files
Options
Downloads
Patches
Plain Diff
cgi: sys.path.insert should be before importing mercurial
thanks to R. Burke
parent
423f4e8b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
contrib/hgwebdir.fcgi
+4
-4
4 additions, 4 deletions
contrib/hgwebdir.fcgi
hgweb.cgi
+4
-4
4 additions, 4 deletions
hgweb.cgi
hgwebdir.cgi
+4
-4
4 additions, 4 deletions
hgwebdir.cgi
with
12 additions
and
12 deletions
contrib/hgwebdir.fcgi
+
4
−
4
View file @
79279b55
...
...
@@ -2,6 +2,10 @@
#
# An example CGI script to export multiple hgweb repos, edit as necessary
# adjust python path if not a system-wide install:
#import sys
#sys.path.insert(0, "/path/to/python/lib")
# enable demandloading to reduce startup time
from
mercurial
import
demandimport
;
demandimport
.
enable
()
...
...
@@ -9,10 +13,6 @@
import
cgitb
cgitb
.
enable
()
# adjust python path if not a system-wide install:
#import sys
#sys.path.insert(0, "/path/to/python/lib")
# If you'd like to serve pages with UTF-8 instead of your default
# locale charset, you can do so by uncommenting the following lines.
# Note that this will cause your .hgrc files to be interpreted in
...
...
This diff is collapsed.
Click to expand it.
hgweb.cgi
+
4
−
4
View file @
79279b55
...
...
@@ -2,6 +2,10 @@
#
# An example CGI script to use hgweb, edit as necessary
# adjust python path if not a system-wide install:
#import sys
#sys.path.insert(0, "/path/to/python/lib")
# enable importing on demand to reduce startup time
from
mercurial
import
demandimport
;
demandimport
.
enable
()
...
...
@@ -9,10 +13,6 @@
import
cgitb
cgitb
.
enable
()
# adjust python path if not a system-wide install:
#import sys
#sys.path.insert(0, "/path/to/python/lib")
# If you'd like to serve pages with UTF-8 instead of your default
# locale charset, you can do so by uncommenting the following lines.
# Note that this will cause your .hgrc files to be interpreted in
...
...
This diff is collapsed.
Click to expand it.
hgwebdir.cgi
+
4
−
4
View file @
79279b55
...
...
@@ -2,6 +2,10 @@
#
# An example CGI script to export multiple hgweb repos, edit as necessary
# adjust python path if not a system-wide install:
#import sys
#sys.path.insert(0, "/path/to/python/lib")
# enable importing on demand to reduce startup time
from
mercurial
import
demandimport
;
demandimport
.
enable
()
...
...
@@ -9,10 +13,6 @@
import
cgitb
cgitb
.
enable
()
# adjust python path if not a system-wide install:
#import sys
#sys.path.insert(0, "/path/to/python/lib")
# If you'd like to serve pages with UTF-8 instead of your default
# locale charset, you can do so by uncommenting the following lines.
# Note that this will cause your .hgrc files to be interpreted in
...
...
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