Show More
@@ -31,6 +31,7 b' command="hg-ssh --read-only repos/*"' | |||||
31 | from __future__ import absolute_import |
|
31 | from __future__ import absolute_import | |
32 |
|
32 | |||
33 | import os |
|
33 | import os | |
|
34 | import re | |||
34 | import shlex |
|
35 | import shlex | |
35 | import sys |
|
36 | import sys | |
36 |
|
37 | |||
@@ -51,6 +52,12 b' def main():' | |||||
51 | dispatch.initstdio() |
|
52 | dispatch.initstdio() | |
52 |
|
53 | |||
53 | cwd = os.getcwd() |
|
54 | cwd = os.getcwd() | |
|
55 | if os.name == 'nt': | |||
|
56 | # os.getcwd() is inconsistent on the capitalization of the drive | |||
|
57 | # letter, so adjust it. see https://bugs.python.org/issue40368 | |||
|
58 | if re.match('^[a-z]:', cwd): | |||
|
59 | cwd = cwd[0:1].upper() + cwd[1:] | |||
|
60 | ||||
54 | readonly = False |
|
61 | readonly = False | |
55 | args = sys.argv[1:] |
|
62 | args = sys.argv[1:] | |
56 | while len(args): |
|
63 | while len(args): |
General Comments 0
You need to be logged in to leave comments.
Login now