Bug 1630668 - Fix incompatible type signatures in subclasses of Repository r=dmajor

Differential Revision: https://phabricator.services.mozilla.com/D71200
This commit is contained in:
Ricky Stewart 2020-04-16 17:07:19 +00:00
Родитель 261ddce4a8
Коммит a68fb761e8
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -387,7 +387,7 @@ class HgRepository(Repository):
args = ['--config', 'extensions.automv='] + args
self._run(*args)
def forget_add_remove_files(self, paths):
def forget_add_remove_files(self, *paths):
self._run('forget', *paths)
def get_files_in_working_directory(self):
@ -505,10 +505,10 @@ class GitRepository(Repository):
'--oneline', '--pretty=format:', compare).splitlines()
return [f for f in files if f]
def add_remove_files(self, paths):
def add_remove_files(self, *paths):
self._run('add', *paths)
def forget_add_remove_files(self, paths):
def forget_add_remove_files(self, *paths):
self._run('reset', *paths)
def get_files_in_working_directory(self):