py3: fix dirsync

Summary: The tests now pass

Reviewed By: singhsrb

Differential Revision: D22651024

fbshipit-source-id: 86d262d8526abe8cab5f55be0822cf9e4bc3e1b8
This commit is contained in:
Durham Goode 2020-07-21 17:57:54 -07:00 committed by Facebook GitHub Bot
parent f93256a5e4
commit fec3f6ee4c
2 changed files with 1 additions and 2 deletions

View File

@ -90,7 +90,7 @@ def _bypassdirsync(orig, ui, repo, *args, **kwargs):
def getconfigs(repo):
# read from wvfs/.hgdirsync
filename = ".hgdirsync"
content = repo.wvfs.tryread(filename)
content = repo.wvfs.tryreadutf8(filename)
cfg = config.config()
if content:
cfg.parse(filename, "[dirsync]\n%s" % content, ["dirsync"])

View File

@ -1,4 +1,3 @@
#require py2
#chg-compatible
$ enable dirsync