Page MenuHomeSoftware Heritage

D7087.diff
No OneTemporary

D7087.diff

diff --git a/swh/loader/svn/replay.py b/swh/loader/svn/replay.py
--- a/swh/loader/svn/replay.py
+++ b/swh/loader/svn/replay.py
@@ -470,17 +470,17 @@
svnrepo=self.svnrepo,
)
- def open_file(self, *args) -> FileEditor:
+ def open_file(self, path: str, *args) -> FileEditor:
"""Updating existing file.
"""
- path = os.fsencode(args[0])
- self.directory[path] = from_disk.Content()
- fullpath = os.path.join(self.rootpath, path)
+ path_bytes = os.fsencode(path)
+ self.directory[path_bytes] = from_disk.Content()
+ fullpath = os.path.join(self.rootpath, path_bytes)
return FileEditor(
self.directory,
rootpath=self.rootpath,
- path=path,
+ path=path_bytes,
state=self.file_states[fullpath],
svnrepo=self.svnrepo,
)

File Metadata

Mime Type
text/plain
Expires
Jul 3 2025, 7:29 PM (8 w, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3224775

Event Timeline