Public Member Functions | Public Attributes | Private Member Functions | List of all members
upload.MercurialVCS Class Reference
Inheritance diagram for upload.MercurialVCS:
Inheritance graph
[legend]

Public Member Functions

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

Private Member Functions

def _GetRelPath (self, filename)
 
def _GetRelPath (self, filename)
 

Detailed Description

Implementation of the VersionControlSystem interface for Mercurial.

Definition at line 1042 of file googlemock/scripts/upload.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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

Definition at line 1045 of file googlemock/scripts/upload.py.

◆ __init__() [2/2]

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

Definition at line 1045 of file googletest/scripts/upload.py.

Member Function Documentation

◆ _GetRelPath() [1/2]

def upload.MercurialVCS._GetRelPath (   self,
  filename 
)
private
Get relative path of a file according to the current directory,
given its logical path in the repo.

Definition at line 1058 of file googlemock/scripts/upload.py.

◆ _GetRelPath() [2/2]

def upload.MercurialVCS._GetRelPath (   self,
  filename 
)
private
Get relative path of a file according to the current directory,
given its logical path in the repo.

Definition at line 1058 of file googletest/scripts/upload.py.

◆ GenerateDiff() [1/2]

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.

Definition at line 1064 of file googlemock/scripts/upload.py.

◆ GenerateDiff() [2/2]

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.

Definition at line 1064 of file googletest/scripts/upload.py.

◆ GetBaseFile() [1/2]

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.

Definition at line 1102 of file googletest/scripts/upload.py.

◆ GetBaseFile() [2/2]

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.

Definition at line 1102 of file googlemock/scripts/upload.py.

◆ GetUnknownFiles() [1/2]

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

Reimplemented from upload.VersionControlSystem.

Definition at line 1090 of file googlemock/scripts/upload.py.

◆ GetUnknownFiles() [2/2]

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

Reimplemented from upload.VersionControlSystem.

Definition at line 1090 of file googletest/scripts/upload.py.

Member Data Documentation

◆ base_rev

upload.MercurialVCS.base_rev

Definition at line 1054 of file googlemock/scripts/upload.py.

◆ repo_dir

upload.MercurialVCS.repo_dir

Definition at line 1048 of file googlemock/scripts/upload.py.

◆ subdir

upload.MercurialVCS.subdir

Definition at line 1052 of file googlemock/scripts/upload.py.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:11