Show More
@@ -39,6 +39,7 b' import hgdemandimport ; hgdemandimport.e' | |||||
39 |
|
39 | |||
40 | from mercurial import ( |
|
40 | from mercurial import ( | |
41 | dispatch, |
|
41 | dispatch, | |
|
42 | pycompat, | |||
42 | ui as uimod, |
|
43 | ui as uimod, | |
43 | ) |
|
44 | ) | |
44 |
|
45 | |||
@@ -69,7 +70,7 b' def main():' | |||||
69 | path = cmdargv[2] |
|
70 | path = cmdargv[2] | |
70 | repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path))) |
|
71 | repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path))) | |
71 | if repo in allowed_paths: |
|
72 | if repo in allowed_paths: | |
72 | cmd = [b'-R', repo, b'serve', b'--stdio'] |
|
73 | cmd = [b'-R', pycompat.fsencode(repo), b'serve', b'--stdio'] | |
73 | req = dispatch.request(cmd) |
|
74 | req = dispatch.request(cmd) | |
74 | if readonly: |
|
75 | if readonly: | |
75 | if not req.ui: |
|
76 | if not req.ui: |
General Comments 0
You need to be logged in to leave comments.
Login now