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

Public Member Functions

 __init__ (self, options)
 GuessBase (self, required)
 GenerateDiff (self, args)
 GetUnknownFiles (self)
 ReadFile (self, filename)
 GetStatus (self, filename)
 GetBaseFile (self, filename)
 __init__ (self, options)
 GuessBase (self, required)
 GenerateDiff (self, args)
 GetUnknownFiles (self)
 ReadFile (self, filename)
 GetStatus (self, filename)
 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

 rev_start = match.group(1)
 rev_end = match.group(3)
dict svnls_cache = {}
 svn_base = self._GuessBase(required)
Public Attributes inherited from upload.VersionControlSystem
 options = options

Protected Member Functions

 _GuessBase (self, required)
 _CollapseKeywords (self, content, keyword_str)
 _GuessBase (self, required)
 _CollapseKeywords (self, content, keyword_str)

Detailed Description

Implementation of the VersionControlSystem interface for Subversion.

Constructor & Destructor Documentation

◆ __init__() [1/2]

upload.SubversionVCS.__init__ ( self,
options )

◆ __init__() [2/2]

upload.SubversionVCS.__init__ ( self,
options )

Member Function Documentation

◆ _CollapseKeywords() [1/2]

upload.SubversionVCS._CollapseKeywords ( self,
content,
keyword_str )
protected
Collapses SVN keywords.

◆ _CollapseKeywords() [2/2]

upload.SubversionVCS._CollapseKeywords ( self,
content,
keyword_str )
protected
Collapses SVN keywords.

◆ _GuessBase() [1/2]

upload.SubversionVCS._GuessBase ( self,
required )
protected
Returns the SVN base URL.

Args:
  required: If true, exits if the url can't be guessed, otherwise None is
    returned.

◆ _GuessBase() [2/2]

upload.SubversionVCS._GuessBase ( self,
required )
protected
Returns the SVN base URL.

Args:
  required: If true, exits if the url can't be guessed, otherwise None is
    returned.

◆ GenerateDiff() [1/2]

upload.SubversionVCS.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.SubversionVCS.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.SubversionVCS.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.SubversionVCS.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.

◆ GetStatus() [1/2]

upload.SubversionVCS.GetStatus ( self,
filename )
Returns the status of a file.

◆ GetStatus() [2/2]

upload.SubversionVCS.GetStatus ( self,
filename )
Returns the status of a file.

◆ GetUnknownFiles() [1/2]

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

Reimplemented from upload.VersionControlSystem.

◆ GetUnknownFiles() [2/2]

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

Reimplemented from upload.VersionControlSystem.

◆ GuessBase() [1/2]

upload.SubversionVCS.GuessBase ( self,
required )
Wrapper for _GuessBase.

◆ GuessBase() [2/2]

upload.SubversionVCS.GuessBase ( self,
required )
Wrapper for _GuessBase.

◆ ReadFile() [1/2]

upload.SubversionVCS.ReadFile ( self,
filename )
Returns the contents of a file.

◆ ReadFile() [2/2]

upload.SubversionVCS.ReadFile ( self,
filename )
Returns the contents of a file.

Member Data Documentation

◆ rev_end

upload.SubversionVCS.rev_end = match.group(3)

◆ rev_start

upload.SubversionVCS.rev_start = match.group(1)

◆ svn_base

upload.SubversionVCS.svn_base = self._GuessBase(required)

◆ svnls_cache

dict upload.SubversionVCS.svnls_cache = {}

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