Public Member Functions | |
def | __init__ |
def | CheckForUnknownFiles |
def | GenerateDiff |
def | GetBaseFile |
def | GetBaseFiles |
def | GetUnknownFiles |
def | IsImage |
def | UploadBaseFiles |
Public Attributes | |
options |
def upload.VersionControlSystem.__init__ | ( | self, | |
options | |||
) |
Constructor. Args: options: Command line options.
Reimplemented in upload.GitVCS, and upload.SubversionVCS.
def upload.VersionControlSystem.CheckForUnknownFiles | ( | self | ) |
def upload.VersionControlSystem.GenerateDiff | ( | self, | |
args | |||
) |
Return the current diff as a string. Args: args: Extra arguments to pass to the diff command.
Reimplemented in upload.MercurialVCS, upload.GitVCS, and upload.SubversionVCS.
def upload.VersionControlSystem.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 in upload.MercurialVCS, upload.GitVCS, and upload.SubversionVCS.
def upload.VersionControlSystem.GetBaseFiles | ( | self, | |
diff | |||
) |
def upload.VersionControlSystem.GetUnknownFiles | ( | self | ) |
Return a list of files unknown to the VCS.
Reimplemented in upload.MercurialVCS, upload.GitVCS, and upload.SubversionVCS.
def upload.VersionControlSystem.IsImage | ( | self, | |
filename | |||
) |
def upload.VersionControlSystem.UploadBaseFiles | ( | self, | |
issue, | |||
rpc_server, | |||
patch_list, | |||
patchset, | |||
options, | |||
files | |||
) |