Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
469a541c
Commit
469a541c
authored
Jul 20, 2013
by
Philip Thiem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks to get everything to pass again.
--HG-- extra : rebase_source : 352b6baf81e891d13f7310bbeb94d2cfce9dbad8
parent
a6e7ef0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
setuptools/svn_utils.py
setuptools/svn_utils.py
+4
-0
setuptools/tests/test_svn.py
setuptools/tests/test_svn.py
+8
-7
No files found.
setuptools/svn_utils.py
View file @
469a541c
...
...
@@ -121,6 +121,7 @@ def parse_dir_entries(decoded_str):
def
parse_externals_xml
(
decoded_str
,
prefix
=
''
):
'''Parse a propget svn:externals xml'''
prefix
=
os
.
path
.
normpath
(
prefix
)
prefix
=
os
.
path
.
normcase
(
prefix
)
doc
=
xml
.
dom
.
pulldom
.
parseString
(
_get_xml_data
(
decoded_str
))
externals
=
list
()
...
...
@@ -129,6 +130,9 @@ def parse_externals_xml(decoded_str, prefix=''):
if
event
==
'START_ELEMENT'
and
node
.
nodeName
==
'target'
:
doc
.
expandNode
(
node
)
path
=
os
.
path
.
normpath
(
node
.
getAttribute
(
'path'
))
log
.
warn
(
''
)
log
.
warn
(
'PRE: %s'
%
prefix
)
log
.
warn
(
'PTH: %s'
%
path
)
if
os
.
path
.
normcase
(
path
).
startswith
(
prefix
):
path
=
path
[
len
(
prefix
)
+
1
:]
...
...
setuptools/tests/test_svn.py
View file @
469a541c
...
...
@@ -114,20 +114,21 @@ class ParserExternalXML(unittest.TestCase):
folder3
=
'third_party3'
expected
=
set
([
"
\
\
"
.
join
((
example_base
,
folder2
)),
"
\
\
"
.
join
((
example_base
,
folder3
)),
os
.
sep
.
join
((
example_base
,
folder2
)),
os
.
sep
.
join
((
example_base
,
folder3
)),
#third_party大介
"
\
\
"
.
join
((
example_base
,
os
.
sep
.
join
((
example_base
,
unicode
(
'third_party'
)
+
unichr
(
0x5927
)
+
unichr
(
0x4ecb
))),
"
\
\
"
.
join
((
example_base
,
'folder'
,
folder2
)),
"
\
\
"
.
join
((
example_base
,
'folder'
,
folder3
)),
"
\
\
"
.
join
((
example_base
,
'folder'
,
os
.
sep
.
join
((
example_base
,
'folder'
,
folder2
)),
os
.
sep
.
join
((
example_base
,
'folder'
,
folder3
)),
os
.
sep
.
join
((
example_base
,
'folder'
,
unicode
(
'third_party'
)
+
unichr
(
0x5927
)
+
unichr
(
0x4ecb
))),
])
dir_base
=
r'c:\
de
velopment\
s
vn_example'
expected
=
set
(
os
.
path
.
normpath
(
x
)
for
x
in
expected
)
dir_base
=
os
.
sep
.
join
((
'C:'
,
'development'
,
'svn_example'
))
self
.
assertEqual
(
set
(
x
for
x
\
in
svn_utils
.
parse_externals_xml
(
data
,
dir_base
)),
expected
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment