Skip to content
Snippets Groups Projects
Commit b98f96d9 authored by Teake Nutma's avatar Teake Nutma
Browse files

Change argument name from `file` to `filename`

parent c3255a00
Branches
Tags
No related merge requests found
......@@ -141,12 +141,12 @@ class GitVersion(Version):
except subprocess.CalledProcessError:
return False
def last_change_on(self, file: str) -> Optional['GitVersion']:
def last_change_on(self, filename: str) -> Optional['GitVersion']:
"""Return the last version which changed the given file, looking back from this version.
:return: None if there is no such a version.
"""
sha1 = self.__run_git_command(['log', '-n', '1', '--format=format:%H', self.id, '--', file])
sha1 = self.__run_git_command(['log', '-n', '1', '--format=format:%H', self.id, '--', filename])
if sha1:
return GitVersion(self.repository, sha1)
else:
......
......@@ -73,7 +73,7 @@ class Version(ABC):
pass
@abstractmethod
def last_change_on(self, file: str) -> Optional['Version']:
def last_change_on(self, filename: str) -> Optional['Version']:
"""Return the last version which changed the given file, looking back from this version.
:return: None if there is no such version.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment