Skip to content

Commit

Permalink
Rename to bring together in directory listing
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed May 16, 2024
1 parent f3e701a commit 6eed7ea
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions src/python/replay_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ def merge_replay(

# Get base, left, right, and programmer merge.

workdir = Path(
f"{repo_slug}-merge-left"
)
workdir = Path(f"{repo_slug}-merge-input-left")
if not (WORKDIR_DIRECTORY / workdir).exists():
repo = Repository(
repo_slug,
Expand All @@ -99,11 +97,9 @@ def merge_replay(
delete_workdir=False,
lazy_clone=False,
)
repo.checkout(merge_data['left'])
repo.checkout(merge_data["left"])

workdir = Path(
f"{repo_slug}-merge-right"
)
workdir = Path(f"{repo_slug}-merge-input-right")
if not (WORKDIR_DIRECTORY / workdir).exists():
repo = Repository(
repo_slug,
Expand All @@ -112,11 +108,9 @@ def merge_replay(
delete_workdir=False,
lazy_clone=False,
)
repo.checkout(merge_data['right'])
repo.checkout(merge_data["right"])

workdir = Path(
f"{repo_slug}-merge-base"
)
workdir = Path(f"{repo_slug}-merge-input-base")
if not (WORKDIR_DIRECTORY / workdir).exists():
repo = Repository(
repo_slug,
Expand All @@ -125,12 +119,13 @@ def merge_replay(
delete_workdir=False,
lazy_clone=False,
)
base_commit = subprocess.run(['git', 'merge-base', merge_data['left'], merge_data['right']], stdout=subprocess.PIPE).stdout.decode('utf-8')
base_commit = subprocess.run(
["git", "merge-base", merge_data["left"], merge_data["right"]],
stdout=subprocess.PIPE,
).stdout.decode("utf-8")
repo.checkout(base_commit)

workdir = Path(
f"{repo_slug}-merge-programmer"
)
workdir = Path(f"{repo_slug}-merge-input-programmer")
if not (WORKDIR_DIRECTORY / workdir).exists():
repo = Repository(
repo_slug,
Expand All @@ -139,8 +134,7 @@ def merge_replay(
delete_workdir=False,
lazy_clone=False,
)
repo.checkout(merge_data['merge'])

repo.checkout(merge_data["merge"])

for merge_tool in MERGE_TOOL:
progress.update(task, advance=1)
Expand Down

0 comments on commit 6eed7ea

Please sign in to comment.