зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
261ddce4a8
Коммит
a68fb761e8
|
@ -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):
|
||||
|
|
Загрузка…
Ссылка в новой задаче