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
82a8940b
Commit
82a8940b
authored
Jun 30, 2013
by
Philip Thiem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added querying externals to the classes
--HG-- extra : rebase_source : 9b76763b0ba0dc1ac6de130b04f6bb5ebf546fe6
parent
fa323cad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
setuptools/svn_utils.py
setuptools/svn_utils.py
+22
-0
No files found.
setuptools/svn_utils.py
View file @
82a8940b
...
...
@@ -49,6 +49,28 @@ class SVNEntries(object):
all_revs
=
self
.
parse_revision_numbers
()
+
[
0
]
return
max
(
all_revs
)
def
__get_cached_external_dirs
(
self
):
return
self
.
external_dirs
def
get_external_dirs
(
self
):
#regard the shell argument, see: http://bugs.python.org/issue8557
# and http://stackoverflow.com/questions/5658622/python-subprocess-popen-environment-path
proc
=
_Popen
([
'svn'
,
'propget'
,
self
.
path
],
stdout
=
_PIPE
,
shell
=
(
sys
.
platform
==
'win32'
))
data
=
unicode
(
proc
.
communicate
()[
0
],
encoding
=
'utf-8'
).
splitlines
()
data
=
[
line
.
split
()
for
line
in
data
]
# http://svnbook.red-bean.com/en/1.6/svn.advanced.externals.html
#there appears to be three possible formats for externals since 1.5
#but looks like we only need the local relative path names so it's just
#2 either the first column or the last (of 2 or 3)
index
=
-
1
if
all
(
"://"
in
line
[
-
1
]
for
line
in
data
):
index
=
0
self
.
external_dirs
=
[
line
[
index
]
for
line
in
data
]
return
self
.
dir_data
class
SVNEntriesXML
(
SVNEntries
):
def
is_valid
(
self
):
return
True
...
...
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