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

Public Member Functions

def __init__ (self, flags, local_ref, remote_ref_string, remote, old_commit=None, summary='')
 
def old_commit (self)
 
def remote_ref (self)
 

Data Fields

 flags
 
 local_ref
 
 remote_ref_string
 
 summary
 

Static Public Attributes

 FORCED_UPDATE
 
 FAST_FORWARD
 
 UP_TO_DATE
 
 ERROR
 

Detailed Description

Carries information about the result of a push operation of a single head::

    info = remote.push()[0]
    info.flags          # bitflags providing more information about the result
    info.local_ref      # Reference pointing to the local reference that was pushed
                        # It is None if the ref was deleted.
    info.remote_ref_string # path to the remote reference located on the remote side
    info.remote_ref # Remote Reference on the local side corresponding to
                    # the remote_ref_string. It can be a TagReference as well.
    info.old_commit # commit at which the remote_ref was standing before we pushed
                    # it to local_ref.commit. Will be None if an error was indicated
    info.summary    # summary line providing human readable english text about the push

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  flags,
  local_ref,
  remote_ref_string,
  remote,
  old_commit = None,
  summary = '' 
)
Initialize a new instance 

Member Function Documentation

◆ old_commit()

def old_commit (   self)

◆ remote_ref()

def remote_ref (   self)
:return:
    Remote Reference or TagReference in the local repository corresponding
    to the remote_ref_string kept in this instance.

Field Documentation

◆ ERROR

ERROR
static

◆ FAST_FORWARD

FAST_FORWARD
static

◆ flags

flags

◆ FORCED_UPDATE

FORCED_UPDATE
static

◆ local_ref

local_ref

◆ remote_ref_string

remote_ref_string

◆ summary

summary

◆ UP_TO_DATE

UP_TO_DATE
static

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