Changeset View
Changeset View
Standalone View
Standalone View
swh/model/tests/swh_model_data.py
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | Revision( | ||||
synthetic=False, | synthetic=False, | ||||
metadata=None, | metadata=None, | ||||
parents=( | parents=( | ||||
hash_to_bytes("9b918dd063cec85c2bc63cc7f167e29f5894dcbc"), | hash_to_bytes("9b918dd063cec85c2bc63cc7f167e29f5894dcbc"), | ||||
hash_to_bytes("757f38bdcd8473aaa12df55357f5e2f1a318e672"), | hash_to_bytes("757f38bdcd8473aaa12df55357f5e2f1a318e672"), | ||||
), | ), | ||||
), | ), | ||||
Revision( | Revision( | ||||
id=hash_to_bytes("677063f5c405d6fc1781fc56379c9a9adf43d3a0"), | id=hash_to_bytes("c7f96242d73c267adc77c2908e64e0c1cb6a4431"), | ||||
ardumont: what about removing those.
AFAIR, it should be computed by itself?
(just a thought) | |||||
Done Inline Actionsas I said in D5587, I prefer keeping them:
douardda: as I said in D5587, I prefer keeping them:
- it makes debugging failed tests easier
- it… | |||||
Not Done Inline Actionsok, fair points. (I did not see the other diff as it's still in draft, thx for the heads up). ardumont: ok, fair points.
(I did not see the other diff as it's still in draft, thx for the heads up). | |||||
message=b"hello again", | message=b"hello again", | ||||
date=DATES[1], | date=DATES[1], | ||||
committer=COMMITTERS[1], | committer=COMMITTERS[1], | ||||
author=COMMITTERS[1], | author=COMMITTERS[1], | ||||
committer_date=DATES[1], | committer_date=DATES[1], | ||||
type=RevisionType.MERCURIAL, | type=RevisionType.MERCURIAL, | ||||
directory=b"\x02" * 20, | directory=b"\x02" * 20, | ||||
synthetic=False, | synthetic=False, | ||||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | OriginVisitStatus( | ||||
metadata=None, | metadata=None, | ||||
), | ), | ||||
] | ] | ||||
DIRECTORIES = [ | DIRECTORIES = [ | ||||
Directory(id=hash_to_bytes("4b825dc642cb6eb9a060e54bf8d69288fbee4904"), entries=()), | Directory(id=hash_to_bytes("4b825dc642cb6eb9a060e54bf8d69288fbee4904"), entries=()), | ||||
Directory( | Directory( | ||||
id=hash_to_bytes("21416d920e0ebf0df4a7888bed432873ed5cb3a7"), | id=hash_to_bytes("87b339104f7dc2a8163dec988445e3987995545f"), | ||||
entries=( | entries=( | ||||
DirectoryEntry( | DirectoryEntry( | ||||
name=b"file1.ext", | name=b"file1.ext", | ||||
perms=0o644, | perms=0o644, | ||||
type="file", | type="file", | ||||
target=CONTENTS[0].sha1_git, | target=CONTENTS[0].sha1_git, | ||||
), | ), | ||||
DirectoryEntry( | DirectoryEntry( | ||||
name=b"dir1", | name=b"dir1", | ||||
perms=0o755, | perms=0o755, | ||||
type="dir", | type="dir", | ||||
target=hash_to_bytes("4b825dc642cb6eb9a060e54bf8d69288fbee4904"), | target=hash_to_bytes("4b825dc642cb6eb9a060e54bf8d69288fbee4904"), | ||||
), | ), | ||||
DirectoryEntry( | DirectoryEntry( | ||||
name=b"subprepo1", perms=0o160000, type="rev", target=REVISIONS[1].id, | name=b"subprepo1", perms=0o160000, type="rev", target=REVISIONS[1].id, | ||||
), | ), | ||||
), | ), | ||||
), | ), | ||||
] | ] | ||||
SNAPSHOTS = [ | SNAPSHOTS = [ | ||||
Snapshot( | Snapshot( | ||||
id=hash_to_bytes("17d0066a4a80aba4a0e913532ee8ff2014f006a9"), | id=hash_to_bytes("9e78d7105c5e0f886487511e2a92377b4ee4c32a"), | ||||
branches={ | branches={ | ||||
b"master": SnapshotBranch( | b"master": SnapshotBranch( | ||||
target_type=TargetType.REVISION, target=REVISIONS[0].id | target_type=TargetType.REVISION, target=REVISIONS[0].id | ||||
) | ) | ||||
}, | }, | ||||
), | ), | ||||
Snapshot( | Snapshot( | ||||
id=hash_to_bytes("8ce268b87faf03850693673c3eb5c9bb66e1ca38"), | id=hash_to_bytes("09efffaaad8d1f9c7f9402db0266dbe28082853f"), | ||||
branches={ | branches={ | ||||
b"target/revision": SnapshotBranch( | b"target/revision": SnapshotBranch( | ||||
target_type=TargetType.REVISION, target=REVISIONS[0].id, | target_type=TargetType.REVISION, target=REVISIONS[0].id, | ||||
), | ), | ||||
b"target/alias": SnapshotBranch( | b"target/alias": SnapshotBranch( | ||||
target_type=TargetType.ALIAS, target=b"target/revision" | target_type=TargetType.ALIAS, target=b"target/revision" | ||||
), | ), | ||||
b"target/directory": SnapshotBranch( | b"target/directory": SnapshotBranch( | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |
what about removing those.
AFAIR, it should be computed by itself?
(just a thought)