Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1153
corrupted revision
Active
Public
Actions
Authored by
olasd
on Sep 3 2021, 5:38 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
In
[
8
]:
from
swh.storage
import
get_storage
In
[
9
]:
s
=
get_storage
(
'remote'
,
url
=
'http://moma.internal.softwareheritage.org:5002/'
)
In
[
10
]:
r
,
=
s
.
revision_get
([
bytes
.
fromhex
(
'40b469ef825bec99054bec0fcaec224abe2e9cef'
)])
In
[
11
]:
r
.
id
.
hex
()
Out
[
11
]:
'40b469ef825bec99054bec0fcaec224abe2e9cef'
In
[
12
]:
r
.
compute_hash
()
.
hex
()
Out
[
12
]:
'63cc0f0f6595dc2d41a90500442863acb2f3db00'
Event Timeline
olasd
created this paste.
Sep 3 2021, 5:38 PM
2021-09-03 17:38:22 (UTC+2)
Log In to Comment