@ -126,7 +126,6 @@ class TestGitCl(TestCase):
' -M ' + similarity , ' fake_ancestor_sha ' ] , ) , ' +dat ' )
' -M ' + similarity , ' fake_ancestor_sha ' ] , ) , ' +dat ' )
return [
return [
( ( [ ' git ' , ' config ' , ' gerrit.host ' ] , ) , ' ' ) ,
( ( [ ' git ' , ' config ' , ' rietveld.server ' ] , ) , ' codereview.example.com ' ) ,
( ( [ ' git ' , ' config ' , ' rietveld.server ' ] , ) , ' codereview.example.com ' ) ,
( ( [ ' git ' , ' symbolic-ref ' , ' HEAD ' ] , ) , ' master ' ) ,
( ( [ ' git ' , ' symbolic-ref ' , ' HEAD ' ] , ) , ' master ' ) ,
similarity_call ,
similarity_call ,
@ -149,6 +148,7 @@ class TestGitCl(TestCase):
' foo ' ) ,
' foo ' ) ,
( ( [ ' git ' , ' config ' , ' user.email ' ] , ) , ' me@example.com ' ) ,
( ( [ ' git ' , ' config ' , ' user.email ' ] , ) , ' me@example.com ' ) ,
stat_call ,
stat_call ,
( ( [ ' git ' , ' config ' , ' gerrit.host ' ] , ) , ' ' ) ,
( ( [ ' git ' , ' log ' , ' --pretty=format: %s \n \n % b ' , ' fake_ancestor_sha.. ' ] , ) ,
( ( [ ' git ' , ' log ' , ' --pretty=format: %s \n \n % b ' , ' fake_ancestor_sha.. ' ] , ) ,
' desc \n ' ) ,
' desc \n ' ) ,
]
]
@ -433,7 +433,6 @@ class TestGitCl(TestCase):
@classmethod
@classmethod
def _gerrit_base_calls ( cls ) :
def _gerrit_base_calls ( cls ) :
return [
return [
( ( [ ' git ' , ' config ' , ' gerrit.host ' ] , ) , ' gerrit.example.com ' ) ,
( ( [ ' git ' , ' config ' , ' rietveld.server ' ] , ) , ' codereview.example.com ' ) ,
( ( [ ' git ' , ' config ' , ' rietveld.server ' ] , ) , ' codereview.example.com ' ) ,
( ( [ ' git ' , ' symbolic-ref ' , ' HEAD ' ] , ) , ' master ' ) ,
( ( [ ' git ' , ' symbolic-ref ' , ' HEAD ' ] , ) , ' master ' ) ,
( ( [ ' git ' , ' config ' , ' --int ' , ' --get ' ,
( ( [ ' git ' , ' config ' , ' --int ' , ' --get ' ,
@ -465,6 +464,7 @@ class TestGitCl(TestCase):
@staticmethod
@staticmethod
def _gerrit_upload_calls ( description , reviewers ) :
def _gerrit_upload_calls ( description , reviewers ) :
calls = [
calls = [
( ( [ ' git ' , ' config ' , ' gerrit.host ' ] , ) , ' gerrit.example.com ' ) ,
( ( [ ' git ' , ' log ' , ' --pretty=format: %s \n \n % b ' , ' fake_ancestor_sha.. ' ] , ) ,
( ( [ ' git ' , ' log ' , ' --pretty=format: %s \n \n % b ' , ' fake_ancestor_sha.. ' ] , ) ,
description )
description )
]
]