From 679e4b6fe2217dd1582212fa936e709838927c9c Mon Sep 17 00:00:00 2001 From: Durham Goode Date: Thu, 10 Oct 2019 12:52:43 -0700 Subject: [PATCH] filesystem: fix windows Summary: A previous diff added util.statfiles calls, but assumed the return value was a list. On Windows that is not the case, so let's turn it into a list manually. Reviewed By: xavierd Differential Revision: D17862000 fbshipit-source-id: ccb96d90ea29b97d02da60ce0a25e4192316b45d --- edenscm/mercurial/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edenscm/mercurial/filesystem.py b/edenscm/mercurial/filesystem.py index a1d07d0a13..ce17f28974 100644 --- a/edenscm/mercurial/filesystem.py +++ b/edenscm/mercurial/filesystem.py @@ -164,7 +164,7 @@ class physicalfilesystem(object): # We might not've seen a path because it's in a directory that's # ignored and the walk didn't go down that path. So let's double # check for the existence of that file. - st = util.statfiles([self.opener.join(fn)])[0] + st = list(util.statfiles([self.opener.join(fn)]))[0] # auditpath checks to see if the file is under a symlink directory. # If it is, we treat it the same as if it didn't exist.