diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -85,6 +85,7 @@ def not_rev(r): | |||
85 | def sq(r): | 85 | def sq(r): |
86 | return "'" + r.replace("'", "'\''") + "'" | 86 | return "'" + r.replace("'", "'\''") + "'" |
87 | 87 | ||
88 | |||
88 | _project_hook_list = None | 89 | _project_hook_list = None |
89 | 90 | ||
90 | 91 | ||
@@ -1256,9 +1257,7 @@ class Project(object): | |||
1256 | print(line[:-1]) | 1257 | print(line[:-1]) |
1257 | return p.Wait() == 0 | 1258 | return p.Wait() == 0 |
1258 | 1259 | ||
1259 | |||
1260 | # Publish / Upload ## | 1260 | # Publish / Upload ## |
1261 | |||
1262 | def WasPublished(self, branch, all_refs=None): | 1261 | def WasPublished(self, branch, all_refs=None): |
1263 | """Was the branch published (uploaded) for code review? | 1262 | """Was the branch published (uploaded) for code review? |
1264 | If so, returns the SHA-1 hash of the last published | 1263 | If so, returns the SHA-1 hash of the last published |
@@ -1410,9 +1409,7 @@ class Project(object): | |||
1410 | R_HEADS + branch.name, | 1409 | R_HEADS + branch.name, |
1411 | message=msg) | 1410 | message=msg) |
1412 | 1411 | ||
1413 | |||
1414 | # Sync ## | 1412 | # Sync ## |
1415 | |||
1416 | def _ExtractArchive(self, tarpath, path=None): | 1413 | def _ExtractArchive(self, tarpath, path=None): |
1417 | """Extract the given tar on its current location | 1414 | """Extract the given tar on its current location |
1418 | 1415 | ||
@@ -1819,9 +1816,7 @@ class Project(object): | |||
1819 | patch_id, | 1816 | patch_id, |
1820 | self.bare_git.rev_parse('FETCH_HEAD')) | 1817 | self.bare_git.rev_parse('FETCH_HEAD')) |
1821 | 1818 | ||
1822 | |||
1823 | # Branch Management ## | 1819 | # Branch Management ## |
1824 | |||
1825 | def GetHeadPath(self): | 1820 | def GetHeadPath(self): |
1826 | """Return the full path to the HEAD ref.""" | 1821 | """Return the full path to the HEAD ref.""" |
1827 | dotgit = os.path.join(self.worktree, '.git') | 1822 | dotgit = os.path.join(self.worktree, '.git') |
@@ -2019,9 +2014,7 @@ class Project(object): | |||
2019 | kept.append(ReviewableBranch(self, branch, base)) | 2014 | kept.append(ReviewableBranch(self, branch, base)) |
2020 | return kept | 2015 | return kept |
2021 | 2016 | ||
2022 | |||
2023 | # Submodule Management ## | 2017 | # Submodule Management ## |
2024 | |||
2025 | def GetRegisteredSubprojects(self): | 2018 | def GetRegisteredSubprojects(self): |
2026 | result = [] | 2019 | result = [] |
2027 | 2020 | ||
@@ -2172,7 +2165,6 @@ class Project(object): | |||
2172 | result.extend(subproject.GetDerivedSubprojects()) | 2165 | result.extend(subproject.GetDerivedSubprojects()) |
2173 | return result | 2166 | return result |
2174 | 2167 | ||
2175 | |||
2176 | # Direct Git Commands ## | 2168 | # Direct Git Commands ## |
2177 | def _CheckForImmutableRevision(self): | 2169 | def _CheckForImmutableRevision(self): |
2178 | try: | 2170 | try: |