mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
py3: fix dirsync
Summary: The tests now pass Reviewed By: singhsrb Differential Revision: D22651024 fbshipit-source-id: 86d262d8526abe8cab5f55be0822cf9e4bc3e1b8
This commit is contained in:
parent
f93256a5e4
commit
fec3f6ee4c
@ -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"])
|
||||
|
@ -1,4 +1,3 @@
|
||||
#require py2
|
||||
#chg-compatible
|
||||
|
||||
$ enable dirsync
|
||||
|
Loading…
Reference in New Issue
Block a user