Skip to content

Commit ab1bfbb

Browse files
committed
Make parameter names more consistent
1 parent ab5016b commit ab1bfbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dfetch/project/subproject.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,13 @@ def is_license_file(filename: str) -> bool:
401401
for pattern in SubProject.LICENSE_GLOBS
402402
)
403403

404-
def diff(self, old_rev: str, new_rev: str) -> str:
404+
def diff(self, old_revision: str, new_revision: str) -> str:
405405
"""Generate a relative diff for a subproject."""
406-
if not old_rev:
406+
if not old_revision:
407407
raise RuntimeError(
408408
"When not providing any revisions, dfetch starts from"
409409
f" the last revision to {Metadata.FILENAME} in {self.local_path}."
410410
" Please either commit this, or specify a revision to start from with --revs"
411411
)
412412

413-
return self._diff_impl(old_rev, new_rev, ignore=(Metadata.FILENAME,))
413+
return self._diff_impl(old_revision, new_revision, ignore=(Metadata.FILENAME,))

0 commit comments

Comments
 (0)