Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066578
D7388.id27000.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
D7388.id27000.diff
View Options
diff --git a/swh/dataset/exporters/orc.py b/swh/dataset/exporters/orc.py
--- a/swh/dataset/exporters/orc.py
+++ b/swh/dataset/exporters/orc.py
@@ -244,6 +244,16 @@
)
)
+ revision_header_writer = self.get_writer_for(
+ "revision_extra_headers",
+ directory_name="revision",
+ unique_id=self.uuids["revision"],
+ )
+ for key, value in revision["extra_headers"]:
+ revision_header_writer.write(
+ (hash_to_hex_or_none(revision["id"]), key, value)
+ )
+
def process_directory(self, directory):
directory_writer = self.get_writer_for("directory")
directory_writer.write((hash_to_hex_or_none(directory["id"]),))
diff --git a/swh/dataset/relational.py b/swh/dataset/relational.py
--- a/swh/dataset/relational.py
+++ b/swh/dataset/relational.py
@@ -61,6 +61,11 @@
("parent_id", "string"),
("parent_rank", "int"),
],
+ "revision_extra_headers": [
+ ("id", "string"),
+ ("key", "binary"),
+ ("value", "binary"),
+ ],
"directory": [
("id", "string"),
],
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 3:23 PM (12 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3229110
Attached To
D7388: Export revision extra headers in a dedicated ORC file
Event Timeline
Log In to Comment