Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hdlmake
Commits
278866f1
Commit
278866f1
authored
13 years ago
by
Paweł Szostek
Browse files
Options
Downloads
Patches
Plain Diff
Change default path for modules fetched from SVN repositories
parent
593427ac
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hdlmake
+0
-0
0 additions, 0 deletions
hdlmake
src/fetch.py
+3
-3
3 additions, 3 deletions
src/fetch.py
src/path.py
+1
-1
1 addition, 1 deletion
src/path.py
with
4 additions
and
4 deletions
hdlmake
+
0
−
0
View file @
278866f1
No preview for this file type
This diff is collapsed.
Click to expand it.
src/fetch.py
+
3
−
3
View file @
278866f1
...
...
@@ -61,9 +61,9 @@ class ModulePool(list):
os
.
chdir
(
module
.
fetchto
)
url
,
rev
=
self
.
__parse_repo_url
(
module
.
url
)
basename
=
path
.
svn_basename
(
url
)
#
basename = path.svn_basename(url)
cmd
=
"
svn checkout {0}
"
+
basename
cmd
=
"
svn checkout {0}
"
+
module
.
basename
if
rev
:
cmd
=
cmd
.
format
(
url
+
'
@
'
+
rev
)
else
:
...
...
@@ -78,7 +78,7 @@ class ModulePool(list):
module
.
isfetched
=
True
module
.
revision
=
rev
module
.
path
=
os
.
path
.
join
(
module
.
fetchto
,
basename
)
module
.
path
=
os
.
path
.
join
(
module
.
fetchto
,
module
.
basename
)
return
rval
def
__fetch_from_git
(
self
,
module
):
...
...
This diff is collapsed.
Click to expand it.
src/path.py
+
1
−
1
View file @
278866f1
...
...
@@ -54,7 +54,7 @@ def svn_basename(url):
words
=
url
.
split
(
'
//
'
)
try
:
words
=
words
[
1
].
split
(
'
/
'
)
return
words
[
1
]
return
'
/
'
.
join
(
words
[
1
:])
except
:
return
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment