OpenQuizz
Une application de gestion des contenus pédagogiques
RefLogEntry Class Reference
Inheritance diagram for RefLogEntry:
Collaboration diagram for RefLogEntry:

Public Member Functions

def __repr__ (self)
 
def format (self)
 
def oldhexsha (self)
 
def newhexsha (self)
 
def actor (self)
 
def time (self)
 
def message (self)
 
def new (cls, oldhexsha, newhexsha, actor, time, tz_offset, message)
 
def from_line (cls, line)
 

Detailed Description

Named tuple allowing easy access to the revlog data fields

Member Function Documentation

◆ __repr__()

def __repr__ (   self)
Representation of ourselves in git reflog format

◆ actor()

def actor (   self)
Actor instance, providing access

◆ format()

def format (   self)
:return: a string suitable to be placed in a reflog file

◆ from_line()

def from_line (   cls,
  line 
)
:return: New RefLogEntry instance from the given revlog line.
:param line: line bytes without trailing newline
:raise ValueError: If line could not be parsed

◆ message()

def message (   self)
Message describing the operation that acted on the reference

◆ new()

def new (   cls,
  oldhexsha,
  newhexsha,
  actor,
  time,
  tz_offset,
  message 
)
:return: New instance of a RefLogEntry

◆ newhexsha()

def newhexsha (   self)
The hexsha to the commit the ref now points to, after the change

◆ oldhexsha()

def oldhexsha (   self)
The hexsha to the commit the ref pointed to before the change

◆ time()

def time (   self)
time as tuple:

* [0] = int(time)
* [1] = int(timezone_offset) in time.altzone format 

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