Mercurial > hg-stable
changeset 35403:c8edeb03ca94
lfs: correct the directory list value returned by lfsvfs.walk()
Spotted by Yuya.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 12 Dec 2017 20:22:38 -0500 |
parents | 12055fb3ba30 |
children | a7ff4071c8aa |
files | hgext/lfs/blobstore.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Sun Nov 12 15:34:46 2017 +0100 +++ b/hgext/lfs/blobstore.py Tue Dec 12 20:22:38 2017 -0500 @@ -34,7 +34,7 @@ return super(lfsvfs, self).join(path[0:2], path[2:]) def walk(self, path=None, onerror=None): - """Yield (dirpath, '', oids) tuple for blobs under path + """Yield (dirpath, [], oids) tuple for blobs under path Oids only exist in the root of this vfs, so dirpath is always ''. """ @@ -53,7 +53,7 @@ oids.extend([dirpath + f for f in files if _lfsre.match(dirpath + f)]) - yield ('', '', oids) + yield ('', [], oids) class filewithprogress(object): """a file-like object that supports __len__ and read.