@@ -847,40 +847,40 @@ def test_two_dot_linear_history(self) -> None:
847847 with temporary_git_repository () as (temp_dir , repo ):
848848 a , b , c = self ._make_linear_history (repo , temp_dir )
849849
850- parsed_from , parsed_to = parse_commit_range (f'{ a } ..{ c } ' , temp_dir )
851- assert (parsed_from , parsed_to ) == (a , c )
850+ parsed_from , parsed_to , separator = parse_commit_range (f'{ a } ..{ c } ' , temp_dir )
851+ assert (parsed_from , parsed_to , separator ) == (a , c , '..' )
852852
853853 def test_three_dot_linear_history (self ) -> None :
854854 """For 'A...C' in linear history, expect (A,C)."""
855855 with temporary_git_repository () as (temp_dir , repo ):
856856 a , b , c = self ._make_linear_history (repo , temp_dir )
857857
858- parsed_from , parsed_to = parse_commit_range (f'{ a } ...{ c } ' , temp_dir )
859- assert (parsed_from , parsed_to ) == (a , c )
858+ parsed_from , parsed_to , separator = parse_commit_range (f'{ a } ...{ c } ' , temp_dir )
859+ assert (parsed_from , parsed_to , separator ) == (a , c , '...' )
860860
861861 def test_open_right_linear_history (self ) -> None :
862862 """For 'A..', expect (A,HEAD=C)."""
863863 with temporary_git_repository () as (temp_dir , repo ):
864864 a , b , c = self ._make_linear_history (repo , temp_dir )
865865
866- parsed_from , parsed_to = parse_commit_range (f'{ a } ..' , temp_dir )
867- assert (parsed_from , parsed_to ) == (a , c )
866+ parsed_from , parsed_to , separator = parse_commit_range (f'{ a } ..' , temp_dir )
867+ assert (parsed_from , parsed_to , separator ) == (a , c , '..' )
868868
869869 def test_open_left_linear_history (self ) -> None :
870870 """For '..C' where HEAD==C, expect (HEAD=C,C)."""
871871 with temporary_git_repository () as (temp_dir , repo ):
872872 a , b , c = self ._make_linear_history (repo , temp_dir )
873873
874- parsed_from , parsed_to = parse_commit_range (f'..{ c } ' , temp_dir )
875- assert (parsed_from , parsed_to ) == (c , c )
874+ parsed_from , parsed_to , separator = parse_commit_range (f'..{ c } ' , temp_dir )
875+ assert (parsed_from , parsed_to , separator ) == (c , c , '..' )
876876
877877 def test_single_commit_spec (self ) -> None :
878878 """For 'A', expect (A,HEAD=C)."""
879879 with temporary_git_repository () as (temp_dir , repo ):
880880 a , b , c = self ._make_linear_history (repo , temp_dir )
881881
882- parsed_from , parsed_to = parse_commit_range (a , temp_dir )
883- assert (parsed_from , parsed_to ) == (a , c )
882+ parsed_from , parsed_to , separator = parse_commit_range (a , temp_dir )
883+ assert (parsed_from , parsed_to , separator ) == (a , c , '..' )
884884
885885
886886class TestParsePreReceiveInput :
@@ -1085,7 +1085,8 @@ def test_collect_with_various_commit_range_formats(self) -> None:
10851085 documents = collect_commit_range_diff_documents (mock_ctx , temp_dir , commit_range )
10861086 assert len (documents ) == 2 , f'Expected 2 documents from range A..C, got { len (documents )} '
10871087 commit_ids_in_documents = {doc .unique_id for doc in documents if doc .unique_id }
1088- assert b_commit .hexsha in commit_ids_in_documents and c_commit .hexsha in commit_ids_in_documents
1088+ assert b_commit .hexsha in commit_ids_in_documents
1089+ assert c_commit .hexsha in commit_ids_in_documents
10891090
10901091 # Test three-dot range - should collect documents from commits B and C (2 commits, 2 documents)
10911092 commit_range = f'{ a_commit .hexsha } ...{ c_commit .hexsha } '
@@ -1101,4 +1102,4 @@ def test_collect_with_various_commit_range_formats(self) -> None:
11011102 # Test single commit spec - should be interpreted as A..HEAD (commits B and C, 2 documents)
11021103 commit_range = a_commit .hexsha
11031104 documents = collect_commit_range_diff_documents (mock_ctx , temp_dir , commit_range )
1104- assert len (documents ) == 2 , f'Expected 2 documents from single commit A (interpreted as A..HEAD) , got { len (documents )} '
1105+ assert len (documents ) == 2 , f'Expected 2 documents from single commit A, got { len (documents )} '
0 commit comments