Belle II Software development
Revision Class Reference
Inheritance diagram for Revision:
JsonBase ComparisonRevision

Public Member Functions

def __init__ (self, label, git_hash=None, creation_date=None, packages=None, creation_timezone=None)
 

Public Attributes

 label
 label (or tag) used to display this revision
 
 creation_date
 date when the validation output of this revision was created, as datetime object
 
 creation_timezone
 timezone used by the creation date
 
 git_hash
 The git commit hash which has the HEAD while the validation scripts were executed.
 
 most_recent
 is this the most recent revision in the list this revision is contained ?
 
 packages
 list of packages contained in this revision
 

Detailed Description

Contains information about a specific revision

Definition at line 34 of file json_objects.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  label,
  git_hash = None,
  creation_date = None,
  packages = None,
  creation_timezone = None 
)
Create a new Revision object and fill all members

Reimplemented in ComparisonRevision.

Definition at line 40 of file json_objects.py.

47 ):
48 """
49 Create a new Revision object and fill all members
50 """
51
52
53 self.label = label
54
55
57 self.creation_date = creation_date
58
59
60 self.creation_timezone = creation_timezone
61
62
64 self.git_hash = git_hash
65
66
68 self.most_recent = False
69
70
71 self.packages = [] if (packages is None) else packages
72
73

Member Data Documentation

◆ creation_date

creation_date

date when the validation output of this revision was created, as datetime object

Definition at line 57 of file json_objects.py.

◆ creation_timezone

creation_timezone

timezone used by the creation date

Definition at line 60 of file json_objects.py.

◆ git_hash

git_hash

The git commit hash which has the HEAD while the validation scripts were executed.

Definition at line 64 of file json_objects.py.

◆ label

label

label (or tag) used to display this revision

Definition at line 53 of file json_objects.py.

◆ most_recent

most_recent

is this the most recent revision in the list this revision is contained ?

Definition at line 68 of file json_objects.py.

◆ packages

packages

list of packages contained in this revision

Definition at line 71 of file json_objects.py.


The documentation for this class was generated from the following file: