Show More
@@ -7,7 +7,6 | |||||
7 | from __future__ import absolute_import, print_function |
|
7 | from __future__ import absolute_import, print_function | |
8 |
|
8 | |||
9 | import posixpath |
|
9 | import posixpath | |
10 | import shlex |
|
|||
11 |
|
10 | |||
12 | from mercurial.i18n import _ |
|
11 | from mercurial.i18n import _ | |
13 | from mercurial import ( |
|
12 | from mercurial import ( | |
@@ -71,8 +70,8 class filemapper(object): | |||||
71 | (lex.infile, lex.lineno, listname, name)) |
|
70 | (lex.infile, lex.lineno, listname, name)) | |
72 | return 1 |
|
71 | return 1 | |
73 | return 0 |
|
72 | return 0 | |
74 | lex = shlex.shlex(open(path, 'rb'), path, True) |
|
73 | lex = common.shlexer( | |
75 |
|
|
74 | filepath=path, wordchars='!@#$%^&*()-=+[]{}|;:,./<>?') | |
76 | cmd = lex.get_token() |
|
75 | cmd = lex.get_token() | |
77 | while cmd: |
|
76 | while cmd: | |
78 | if cmd == 'include': |
|
77 | if cmd == 'include': |
General Comments 0
You need to be logged in to leave comments.
Login now