Lines Matching full:revision
41 old_revision: revision to compare against
58 def validate_revision(revision): argument
60 revision + "^{commit}"], shell=False)
63 def _create_git_worktree(self, revision): argument
64 """Make a separate worktree for revision.
67 if revision == "current":
71 print("Creating git worktree for", revision)
72 git_worktree_path = os.path.join(self.repo_path, "temp-" + revision)
75 git_worktree_path, revision], cwd=self.repo_path,
89 def _gen_code_size_csv(self, revision, git_worktree_path): argument
92 csv_fname = revision + ".csv"
93 if revision == "current":
96 print("Measuring code size for", revision)
116 def _get_code_size_for_rev(self, revision): argument
117 """Generate code size csv file for the specified git revision."""
120 csv_fname = revision + ".csv"
121 if (revision != "current") and \
123 print("Code size csv file for", revision, "already exists.")
125 git_worktree_path = self._create_git_worktree(revision)
127 self._gen_code_size_csv(revision, git_worktree_path)
194 "-o", "--old-rev", type=str, help="old revision for comparison.",
199 help="new revision for comparison, default is the current work \