Assimp  v4.1. (December 2018)
upload.MercurialVCS Class Reference

Inherits upload.VersionControlSystem.

Public Member Functions

def __init__ (self, options, repo_dir)
 
def GenerateDiff (self, extra_args)
 
def GetBaseFile (self, filename)
 
def GetUnknownFiles (self)
 
- Public Member Functions inherited from upload.VersionControlSystem
def __init__ (self, options)
 
def CheckForUnknownFiles (self)
 
def GetBaseFiles (self, diff)
 
def IsImage (self, filename)
 
def UploadBaseFiles (self, issue, rpc_server, patch_list, patchset, options, files)
 

Public Attributes

 base_rev
 
 repo_dir
 
 subdir
 
- Public Attributes inherited from upload.VersionControlSystem
 options
 

Detailed Description

Implementation of the VersionControlSystem interface for Mercurial.

Constructor & Destructor Documentation

◆ __init__()

def upload.MercurialVCS.__init__ (   self,
  options,
  repo_dir 
)

Member Function Documentation

◆ GenerateDiff()

def upload.MercurialVCS.GenerateDiff (   self,
  args 
)
Return the current diff as a string.

Args:
  args: Extra arguments to pass to the diff command.

Reimplemented from upload.VersionControlSystem.

◆ GetBaseFile()

def upload.MercurialVCS.GetBaseFile (   self,
  filename 
)
Get the content of the upstream version of a file.

Returns:
  A tuple (base_content, new_content, is_binary, status)
base_content: The contents of the base file.
new_content: For text files, this is empty.  For binary files, this is
  the contents of the new file, since the diff output won't contain
  information to reconstruct the current file.
is_binary: True iff the file is binary.
status: The status of the file.

Reimplemented from upload.VersionControlSystem.

◆ GetUnknownFiles()

def upload.MercurialVCS.GetUnknownFiles (   self)
Return a list of files unknown to the VCS.

Reimplemented from upload.VersionControlSystem.

Member Data Documentation

◆ base_rev

upload.MercurialVCS.base_rev

◆ repo_dir

upload.MercurialVCS.repo_dir

◆ subdir

upload.MercurialVCS.subdir

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