Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163589
D8879.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
870 B
Subscribers
None
D8879.id.diff
View Options
diff --git a/swh/loader/svn/svn.py b/swh/loader/svn/svn.py
--- a/swh/loader/svn/svn.py
+++ b/swh/loader/svn/svn.py
@@ -43,7 +43,7 @@
def quote_svn_url(url: str) -> str:
- return url.replace(" ", "%20")
+ return url.replace(" ", "%20").replace("#", "%23")
class SvnRepo:
diff --git a/swh/loader/svn/tests/test_loader.py b/swh/loader/svn/tests/test_loader.py
--- a/swh/loader/svn/tests/test_loader.py
+++ b/swh/loader/svn/tests/test_loader.py
@@ -2175,8 +2175,10 @@
check_snapshot(loader.snapshot, loader.storage)
-def test_loader_with_spaces_in_svn_url(swh_storage, repo_url, tmp_path):
- filename = "file with spaces.txt"
+@pytest.mark.parametrize(
+ "filename", ["file with spaces.txt", "file#with#hash#signs.txt"]
+)
+def test_loader_with_special_chars_in_svn_url(repo_url, tmp_path, filename):
content = b"foo"
add_commit(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 11:02 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218927
Attached To
D8879: svn: Also escape hash signs in URLs to avoid libsvn assertion
Event Timeline
Log In to Comment