Compare commits

..
3 Commits
2 changed files with 11 additions and 10 deletions
+7
View File
@@ -1,3 +1,10 @@
## v1.7.1 - 2025-12-11
- **bugfix**: cambio la forma en la que se obtiene el first fork point entre 2 ramas [[jteran](mailto:jteran@renatre.org.ar)] (7b4fb34)
---
## v1.7.0 - 2025-12-11
- **feature**: muestro el listado de commits a pasar al siguiente entorno en release [[jteran](mailto:jteran@renatre.org.ar)] (2e65cb7)
+4 -10
View File
@@ -63,19 +63,13 @@ class Git:
@staticmethod
def get_first_fork_point(branch: str, env: str):
boundary_commits = list(
filter(
lambda c: c.startswith("-"), # boundary commits
Git(
"rev-list", env + "..." + branch, topo_order=True, boundary=True
).lines(),
)
)
# Lista de commits alcanzables por el entorno (por ejemplo, dev),
env_commits = Git("rev-list", env + "..." + branch, first_parent=True).lines()
if not boundary_commits:
if not env_commits:
raise RuntimeError("No se encontro un commit base para realizar el rebase.")
return boundary_commits[-1].removeprefix("-")
return Git("show", env_commits[-1] + "^", patch=False, format="%h").firstline()
@staticmethod
def _get_references(kind: str):