Show More
@@ -12,6 +12,7 b' import re' | |||
|
12 | 12 | from mercurial.i18n import _ |
|
13 | 13 | from mercurial import ( |
|
14 | 14 | hook, |
|
15 | pycompat, | |
|
15 | 16 | util, |
|
16 | 17 | ) |
|
17 | 18 | |
@@ -136,8 +137,8 b' def createlog(ui, directory=None, root="' | |||
|
136 | 137 | except IOError: |
|
137 | 138 | raise logerror(_('not a CVS sandbox')) |
|
138 | 139 | |
|
139 |
if prefix and not prefix.endswith( |
|
|
140 |
prefix += |
|
|
140 | if prefix and not prefix.endswith(pycompat.ossep): | |
|
141 | prefix += pycompat.ossep | |
|
141 | 142 | |
|
142 | 143 | # Use the Root file in the sandbox, if it exists |
|
143 | 144 | try: |
@@ -53,6 +53,7 b' from mercurial.i18n import _' | |||
|
53 | 53 | from mercurial import ( |
|
54 | 54 | encoding, |
|
55 | 55 | error, |
|
56 | pycompat, | |
|
56 | 57 | ) |
|
57 | 58 | |
|
58 | 59 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
@@ -97,7 +98,7 b' def appendsep(s):' | |||
|
97 | 98 | except UnicodeError: |
|
98 | 99 | us = s |
|
99 | 100 | if us and us[-1] not in ':/\\': |
|
100 |
s += |
|
|
101 | s += pycompat.ossep | |
|
101 | 102 | return s |
|
102 | 103 | |
|
103 | 104 |
General Comments 0
You need to be logged in to leave comments.
Login now