@@ -76,7 +76,7 @@ def add_bitbucket_step_in_default(step: Step) -> None:
7676
7777 # Early exit if the step already exists in some sense
7878 for existing_step in existing_steps :
79- if _steps_are_equivalent (existing_step , step ):
79+ if bitbucket_steps_are_equivalent (existing_step , step ):
8080 return
8181
8282 # Add the step to the default pipeline
@@ -91,7 +91,7 @@ def add_bitbucket_step_in_default(step: Step) -> None:
9191
9292 # Remove the placeholder step if it already exists
9393 placeholder = _get_placeholder_step ()
94- if not _steps_are_equivalent (placeholder , step ):
94+ if not bitbucket_steps_are_equivalent (placeholder , step ):
9595 # Only remove the placeholder if it hasn't already been added.
9696 remove_bitbucket_step_from_default (placeholder )
9797
@@ -247,7 +247,7 @@ def _censor_step(
247247
248248@_censor_step .register (StepItem )
249249def _ (item : StepItem , * , step : Step ) -> StepItem | ParallelItem | StageItem | None :
250- if _steps_are_equivalent (item .step , step ):
250+ if bitbucket_steps_are_equivalent (item .step , step ):
251251 return None
252252 return item
253253
@@ -265,7 +265,7 @@ def _(item: ParallelItem, *, step: Step) -> StepItem | ParallelItem | StageItem
265265
266266 new_step_items : list [StepItem ] = []
267267 for step_item in step_items :
268- if _steps_are_equivalent (step_item .step , step ):
268+ if bitbucket_steps_are_equivalent (step_item .step , step ):
269269 continue
270270 new_step_items .append (step_item )
271271
@@ -288,7 +288,7 @@ def _(item: StageItem, *, step: Step) -> StepItem | ParallelItem | StageItem | N
288288
289289 new_step1s = []
290290 for step1 in step1s :
291- if _steps_are_equivalent (step1tostep (step1 ), step ):
291+ if bitbucket_steps_are_equivalent (step1tostep (step1 ), step ):
292292 continue
293293 new_step1s .append (step1 )
294294
@@ -326,7 +326,7 @@ def _add_step_caches_via_doc(
326326 _add_caches_via_doc (cache_by_name , doc = doc )
327327
328328
329- def _steps_are_equivalent (step1 : Step | None , step2 : Step ) -> bool :
329+ def bitbucket_steps_are_equivalent (step1 : Step | None , step2 : Step ) -> bool :
330330 if step1 is None :
331331 return False
332332
0 commit comments