Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123160
D7129.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D7129.diff
View Options
diff --git a/swh/loader/svn/tests/test_utils.py b/swh/loader/svn/tests/test_utils.py
--- a/swh/loader/svn/tests/test_utils.py
+++ b/swh/loader/svn/tests/test_utils.py
@@ -352,6 +352,12 @@
"http://svn.example.org/repos/test",
("external", "http://svn.thirdparty.com/repos/test", None, False),
),
+ (
+ ".external http://svn.thirdparty.com/repos/test",
+ "tags",
+ "http://svn.example.org/repos/test",
+ (".external", "http://svn.thirdparty.com/repos/test", None, False),
+ ),
(
"external/ http://svn.thirdparty.com/repos/test",
"tags",
diff --git a/swh/loader/svn/utils.py b/swh/loader/svn/utils.py
--- a/swh/loader/svn/utils.py
+++ b/swh/loader/svn/utils.py
@@ -279,7 +279,8 @@
path = external_part.replace("\\\\", "\\")
if path == external_part:
path = external_part.replace("\\", "")
- path = path.lstrip("./")
+ if path.startswith("./"):
+ path = path.replace("./", "", 1)
prev_part = external_part
if "@" in external_url:
# try to extract revision number if external URL is in the form
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 1:00 AM (2 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225536
Attached To
D7129: utils: Fix hidden path processing in parse_external_definition
Event Timeline
Log In to Comment