Bug 1659602 - Fix type error in mozversioncontrol for Windows+hg+Python 3 r=dmajor

These arguments will get converted to `bytes` later on if necessary; if we don't defer to `hglib`, then we need proper strings.

Differential Revision: https://phabricator.services.mozilla.com/D87440
This commit is contained in:
Ricky Stewart 2020-08-18 12:51:49 +00:00
parent 826a5ab4e7
commit 9ad232391e

View File

@ -429,7 +429,7 @@ class HgRepository(Repository):
def get_tracked_files_finder(self):
# Can return backslashes on Windows. Normalize to forward slashes.
files = list(p.replace('\\', '/') for p in
self._run(b'files', b'-0').split('\0') if p)
self._run('files', '-0').split('\0') if p)
return FileListFinder(files)
def working_directory_clean(self, untracked=False, ignored=False):