Monero
Loading...
Searching...
No Matches
upload.MercurialVCS Class Reference
Inheritance diagram for upload.MercurialVCS:
Collaboration diagram for upload.MercurialVCS:

Public Member Functions

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

Public Attributes

 repo_dir = os.path.normpath(repo_dir)
 subdir = cwd[len(self.repo_dir):].lstrip(r"\/")
 base_rev = self.options.revision
Public Attributes inherited from upload.VersionControlSystem
 options = options

Protected Member Functions

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

Detailed Description

Implementation of the VersionControlSystem interface for Mercurial.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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

◆ __init__() [2/2]

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

Member Function Documentation

◆ _GetRelPath() [1/2]

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

◆ _GetRelPath() [2/2]

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

◆ GenerateDiff() [1/2]

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.

◆ GenerateDiff() [2/2]

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() [1/2]

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.

◆ GetBaseFile() [2/2]

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() [1/2]

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

Reimplemented from upload.VersionControlSystem.

◆ GetUnknownFiles() [2/2]

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 = self.options.revision

◆ repo_dir

upload.MercurialVCS.repo_dir = os.path.normpath(repo_dir)

◆ subdir

upload.MercurialVCS.subdir = cwd[len(self.repo_dir):].lstrip(r"\/")

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