Lines Matching refs:status
113 """Print a status message to stdout.
597 ErrorExit("Got error status from %s:\n%s" % (command, data))
644 A tuple (base_content, new_content, is_binary, status)
650 status: The status of the file.
680 def UploadFile(filename, file_id, content, is_binary, status, is_base):
697 ("status", status),
717 base_content, new_content, is_binary, status = files[filename]
724 UploadFile(filename, file_id, base_content, is_binary, status, True)
726 UploadFile(filename, file_id, new_content, is_binary, status, False)
852 status = RunShell(["svn", "status", "--ignore-externals"], silent_ok=True)
854 for line in status.split("\n"):
870 """Returns the status of a file."""
872 status = RunShell(["svn", "status", "--ignore-externals", filename])
873 if not status:
874 ErrorExit("svn status returned no output for %s" % filename)
875 status_lines = status.splitlines()
882 status = status_lines[2]
884 status = status_lines[0]
887 # the correct status for a file.
894 ErrorExit("Failed to get status for %s." % filename)
906 status = "D "
908 status = "M "
910 status = "A "
911 return status
914 status = self.GetStatus(filename)
918 # If a file is copied its status will be "A +", which signifies
922 if status[0] == "A" and status[3] != "+":
931 elif (status[0] in ("M", "D", "R") or
932 (status[0] == "A" and status[3] == "+") or # Copied file.
933 (status[0] == " " and status[1] == "M")): # Property change.
949 if status[0] == " ":
955 if status[0] == "M":
995 StatusUpdate("svn status returned unexpected output: %s" % status)
997 return base_content, new_content, is_binary, status[0:5]
1037 status = RunShell(["git", "ls-files", "--exclude-standard", "--others"],
1039 return status.splitlines()
1047 status = "A"
1050 status = "M"
1053 ErrorExit("Got error status from 'git show %s'" % hash)
1054 return (base_content, new_content, is_binary, status)
1108 status = RunShell(["hg", "status", "--rev", self.base_rev, "-u", "."],
1111 for line in status.splitlines():
1118 # "hg status" and "hg cat" both take a path relative to the current subdir
1125 # "hg status -C" returns two lines for moved/copied files, one otherwise
1126 out = RunShell(["hg", "status", "-C", "--rev", self.base_rev, relpath])
1136 status = "M"
1138 status, _ = out[0].split(' ', 1)
1139 if status != "A":
1143 if status != "R":
1152 return base_content, new_content, is_binary, status
1350 # that it contains the file status.